Skip to content
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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Escaped Characters Not Displaying Correctly in Code Blocks When Using React Mode #524

Open
NapoliN opened this issue Dec 5, 2024 · 0 comments

Comments

@NapoliN
Copy link

NapoliN commented Dec 5, 2024

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.

image

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant