-
-
Notifications
You must be signed in to change notification settings - Fork 8.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Admonitions with backticks elicit <mdxAdmonitionTitle /> warnings #8233
Comments
|
cd /tmp
npx create-docusaurus@latest my-website classic
## create-docusaurus@2.1.0
cd my-website
cat <<EOF >> docs/intro.md
:::info Something \`with\` backticks
will elicit a warning
:::
EOF
npm start Now open the web browser and navigate to http://localhost:3000/docs/intro . Inspecting the console reveals the warning: (note: this warning does not show up when building the production site) package.json uses the following dependencies: {
"@docusaurus/core": "2.1.0",
"@docusaurus/preset-classic": "2.1.0",
"@mdx-js/react": "^1.6.22",
"clsx": "^1.2.1",
"prism-react-renderer": "^1.3.5",
"react": "^17.0.2",
"react-dom": "^17.0.2"
} |
thanks. i can try! |
docusaurus/packages/docusaurus-mdx-loader/src/remark/admonitions/index.ts Lines 141 to 159 in e411332
#7152 (comment) Temporary workaround, because it's complex in MDX v1 to emit. maybe they will migrate mdx 2.0 then update this later |
Have you read the Contributing Guidelines on issues?
Prerequisites
npm run clear
oryarn clear
command.rm -rf node_modules yarn.lock package-lock.json
and re-installing packages.Description
An admonition with backticks generates a warning e.g.
Console warning:
It does display what you would expect:
Reproducible demo
No response
Steps to reproduce
Create a blank site (or use docusaurus.new)
Add the following to
/docs/intro.md
:Load the intro page
Expected behavior
No warning
Actual behavior
warning (see description)
Your environment
Affects docusaurus.new CSB site on 2022-10-20 19:52 EDT
Self-service
The text was updated successfully, but these errors were encountered: