Admonitions in MDX "partials" are not rendered properly #10576
Labels
bug
An error in the Docusaurus core causing instability or issues with its execution
domain: markdown
Related to Markdown parsing or syntax
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
When using an MDX partial (e.g.
_markdown-include.mdx
) that contains an MDX admonition:The MDX-style admonition is not rendered properly (whereas the JSX one is).
Codesandbox URL below :-)
Reproducible demo
https://codesandbox.io/p/sandbox/cocky-jackson-ny6mjg
Steps to reproduce
Expected behavior
For the MDX-format admonition to appear with styling/icon/header as it would if the MDX file were visited directly.
Actual behavior
The body of admonition is shown plainly, and the markup usually associated with an admonition is basically missing. What does come out is an HTML transliteration of JSX admonitions:
Your environment
No response
Self-service
The text was updated successfully, but these errors were encountered: