Update markdown-content.mdx#9074
Conversation
fix Markdown plugins remarkPlugins example code error for remarkToc usage
✅ Deploy Preview for astro-docs-2 ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify site configuration. |
|
Hello! Thank you for opening your first PR to Astro’s Docs! 🎉 Here’s what will happen next:
|
Lunaria Status Overview🌕 This pull request will trigger status changes. Learn moreBy default, every PR changing files present in the Lunaria configuration's You can change this by adding one of the keywords present in the Tracked Files
Warnings reference
|
sarah11918
left a comment
There was a problem hiding this comment.
Thank you so much for catching this! We appreciate you taking the time to come fix this, and are happy to welcome you to Team Docs! 🥳
yanthomasdev
left a comment
There was a problem hiding this comment.
LGTM! Good job @yuedanlabs! 💜
Apply changes from withastro#9074
Apply changes from #9074 Co-authored-by: Paul Valladares <85648028+dreyfus92@users.noreply.github.com>
fix Markdown plugins remarkPlugins example code error for remarkToc usage
Description (required)
there is an error for Markdown plugins remarkPlugins example code about remarkToc usage
fix code as bellow:
import { defineConfig } from 'astro/config'; import remarkToc from 'remark-toc'; import { rehypeAccessibleEmojis } from 'rehype-accessible-emojis'; export default defineConfig({ markdown: { // Applied to .md and .mdx files - remarkPlugins: [remarkToc, { heading: 'toc', maxDepth: 3 }], + remarkPlugins: [ [remarkToc, { heading: 'toc', maxDepth: 3 } ] ], rehypePlugins: [rehypeAccessibleEmojis], }, });Related issues & labels (optional)
First-time contributor to Astro Docs?
yes