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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Admonitions in partials outside the docs directory are rendered as plain text #5333
Comments
@leograba I see you have space between |
agree, the issue is the extra space |
Sorry, indeed I made a syntax issue mistake while creating the initial sandbox environment. Nevertheless, after fixing the syntax issue and creating a proper setup where the partial is a file outside |
Right, can reproduce the issue 馃憤 will get this fixed |
fixed in #5339 |
馃悰 Bug Report
Prerequisites
0.0.0-3914
because it support adding partials from outside the docs plugin directory.Description
When including a partial from a file outside the doc plugin directory, if the partial contains admonitions then the admonitions are rendered as plain text.
Have you read the Contributing Guidelines on issues?
Yes.
Steps to reproduce
npx @docusaurus/init@latest init my-website classic
2.0.0-beta.4
does not support it. I've used0.0.0-3914
./docs/test-doc.mdx
and a directory and partial file/_shared/test-partial.mdx
:/docs/test-doc.mdx
/_shared/test-partial.mdx
npx docusaurus start
and navigate tohttp://localhost:3000/docs/test-doc
.Expected behavior
The admonition from the partial file
/_shared/test-partial.mdx
(This is an info panel inside a partial.) should be rendered with admonition style instead of plain text.Actual behavior
There are no errors on
npx docusaurus start
.Your environment
Reproducible demo
https://codesandbox.io/s/youthful-architecture-w2xcy?file=/docs/test-doc.mdx
Visit the page https://w2xcy.sse.codesandbox.io/docs/test-doc to see the issue live.
The text was updated successfully, but these errors were encountered: