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

Strings inside html tags aren't rendered properly by marked #14

Open
earlAchromatic opened this issue May 5, 2023 · 0 comments
Open

Comments

@earlAchromatic
Copy link

Hey @nartc I have been relying heavily on notion-stuff for a recent project. It's great!

I ran into an issue with the blocks-markdown-parser where a toggle block with a code block nested inside of it (pretty common use case to represent JSON or something) will get rendered incorrectly. The problem is that anything nested inside a valid html tag gets skipped by marked. When toggle content is wrapped in details tags, the code block is left as a string. This would be a problem for anything the parser wraps inside of tags.

You can see exactly what I'm talking about in the official marked demo here.

Do you know any way around this? The only fix I can think of is to run marked to eagerly convert the markdown into html. Is there something to be done at the marked config level? I noticed that in the demo it worked closer to expected in the "daring fireball" flavor.

Happy to contribute if we can come up with a good fix.

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