vite-plugin-markdown
vite-plugin-markdown copied to clipboard
Escaped Characters Not Displaying Correctly in Code Blocks When Using React Mode
Hi
Thank you for your work on this plugin. It's super useful.
I found some strange behavior when using MODE.REACT to handle .md files as React components. Only within code blocks, apostrophes and double quotes are not displayed correctly.
After looking into it a bit, I found the following in the built file:
I cannot write apostrophe ' .
& is the escape character for the ampersand, so I believe that's why it gets displayed as "'".
Perhaps the issue is caused by escape handling for special characters being applied twice?
It seems that the bug doesn't occur with MODE.html, so I'll use that for now. However, being able to handle it as a Component would allow for cleaner code, so I hope the bug gets fixed soon.