Skip to content

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

@NapoliN

Description

@NapoliN

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions