Replies: 3 comments 12 replies
-
Markdown has indent for code. Your string is indented so it's code. Don't indent your string. |
Beta Was this translation helpful? Give feedback.
-
It doesn’t “escape”, because it isn’t supposed to escape. Inside a code element, you are still writing HTML. Have you tried that HTML in a browser? That’s an actual It’s the same as writing ```c
unordered_map<int,int> umap;
``` What do you want to happen? |
Beta Was this translation helpful? Give feedback.
-
A reduced test input that also shows an error, is I agree that it would be good to not crash on this input, and instead handle it somehow. /cc @remcohaszing @ChristianMurphy
I can imagine several solutions to this problem:
|
Beta Was this translation helpful? Give feedback.
-
The above component throws the following error:
It is unable to escape
<int,int>
inside<code>
tag"react-markdown": "^8.0.3"
"rehype-raw": "6.1.1",
Beta Was this translation helpful? Give feedback.
All reactions