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

Misinterpretation of HTML tags in plain text #5

Open
abhishiv opened this issue Aug 23, 2024 · 1 comment
Open

Misinterpretation of HTML tags in plain text #5

abhishiv opened this issue Aug 23, 2024 · 1 comment

Comments

@abhishiv
Copy link

Hey @thetarnav thank you very much for a great module.

Just a bug that I noticed. Seems that if the streaming text has a html tag even outside of code block, streaming-markdown converts it to html. See attached screenshot.

Screenshot 2024-08-24 at 02 12 35
@thetarnav
Copy link
Owner

thetarnav commented Aug 24, 2024

the parser doesn’t parse html elements, so I think it’s up to the renderer
if the renderer is using innerHtml to render the text, the elements will just get rendered
Also since this is supposed to be a optimistic parser, when supported—html elements will also get rendered, even if only the opening <h1> is present.
Can you share more details about the markdown content so there is no misunderstanding and what renderer are you using?

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

2 participants