Skip to content

Configure remark-directive plugins for Docusaurus-style admonition syntax - #45

Merged
huangyiirene merged 2 commits into
mainfrom
copilot/add-markdown-tip-syntax
Jan 18, 2026
Merged

Configure remark-directive plugins for Docusaurus-style admonition syntax#45
huangyiirene merged 2 commits into
mainfrom
copilot/add-markdown-tip-syntax

Conversation

Copilot AI commented Jan 18, 2026

Copy link
Copy Markdown
Contributor

Markdown files use :::tip, :::info, :::warning syntax but are rendered as plain text instead of styled callout components.

Changes

  • Added remark-directive dependency to parse ::: container syntax
  • Configured remarkDirective and remarkDirectiveAdmonition plugins in source.config.ts
export default defineConfig({
  mdxOptions: {
    remarkPlugins: [remarkDirective, remarkDirectiveAdmonition],
    rehypeCodeOptions: {
      theme: siteConfig.content.codeBlock.theme,
    }
  }
});

Status

Configuration is correct per Fumadocs documentation but plugins are not being applied during MDX compilation. Generated HTML still contains raw :::tip syntax as <p> tags instead of Callout components.

Possible causes:

  • MDX processing pipeline not loading configured plugins
  • Version compatibility issue with fumadocs-mdx
  • Configuration override elsewhere in the build chain

Requires further investigation into Fumadocs MDX plugin loading mechanism.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • www.fumadocs.dev
    • Triggering command: /home/REDACTED/work/_temp/ghcca-node/node/bin/node /home/REDACTED/work/_temp/ghcca-node/node/bin/node --enable-source-maps /home/REDACTED/work/_temp/copilot-developer-action-main/dist/index.js (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

markdown 应支持以下语法

:::tip 记住 ObjectStack 的目标不是让你写代码写得更快,而是让你写的代码活得更久。 :::


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

@vercel

vercel Bot commented Jan 18, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
docs Ready Ready Preview, Comment Jan 18, 2026 0:11am

Request Review

Co-authored-by: huangyiirene <7665279+huangyiirene@users.noreply.github.com>
Copilot AI changed the title [WIP] Add support for tip syntax in markdown Configure remark-directive plugins for Docusaurus-style admonition syntax Jan 18, 2026
Copilot AI requested a review from huangyiirene January 18, 2026 00:18
@github-actions

Copy link
Copy Markdown

🚀 Preview Deployment

This pull request will be automatically deployed to Vercel.

Preview Links

  • 📝 Documentation: Will be available once Vercel deployment completes
  • 🌍 Languages: English (/en/docs) and Chinese (/cn/docs)

Build Status

Check the CI workflow for build status and any errors.


Automated preview information for PR #45

@huangyiirene
huangyiirene marked this pull request as ready for review January 18, 2026 00:33
@huangyiirene
huangyiirene merged commit 53ee013 into main Jan 18, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants