ReferenceError when Markdown file contains HTML with curly braces #4288
Labels
closed: working as intended
This issue is intended behavior, there's no need to take any action.
external
This issue is caused by an external dependency and not Docusaurus.
🐛 Bug Report
I have automatically generated Markdown files (
.md
) that contain HTML. The page crashes if that HTML contains a pair of curly braces:Results in:
ReferenceError: html is not defined
Have you read the Contributing Guidelines on issues?
Yes.
To Reproduce
Expected behavior
I was expecting to be able to access the page and read my content.
Actual Behavior
Instead the page crashed with an error message.
Your Environment
Reproducible Demo
https://codesandbox.io/s/reverent-lederberg-f8jcl
If you want to reproduce it on your own, here's how you can do it:
<p>Hey {there}!</p>
Although I like the idea that Docusaurus is able to infer some nice defaults, it seems that Markdown has some incompatibilities with MDX. So perhaps it should not be parsed as MDX if the file extension is
.md
?The text was updated successfully, but these errors were encountered: