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

Markdown html code blocks break #177

Open
PrettyCoffee opened this issue Nov 17, 2024 · 0 comments
Open

Markdown html code blocks break #177

PrettyCoffee opened this issue Nov 17, 2024 · 0 comments

Comments

@PrettyCoffee
Copy link

PrettyCoffee commented Nov 17, 2024

Hey :)

When using markdown as language and typing something like this:

\```html
<div />
\```

(without the backslash)

The < character will be replaced by &lt;.

E.g. in the demo:
image

My guess was that this bit of code is at fault:
https://github.com/uiwjs/react-textarea-code-editor/blob/f8280760e58ec7a1af16f81880499d5a5762e5f1/core/src/utils.ts#L14C1-L19C7

But unfortunately, I can't figure out why it needs to be escaped twice and didn't feel comfortable with raising a PR about it, in fear of breaking something else. 😅

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