Replies: 1 comment
-
Heya, so you are talking about Markdown inside HTML. As discussed in e.g. https://stackoverflow.com/questions/29368902/how-can-i-wrap-my-markdown-in-an-html-div, |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am parsing documents that use
div
andspan
tags to style the Markdown. My test program is:and its output is:
It looks like the div is captured as a string, rather than being parsed to create nodes in the syntax tree. Is there some option I can set that'll tell MarkdownIt to do the latter, so that I get a token in the tree with tag
div
and attrs{"class": "blue"}
?Beta Was this translation helpful? Give feedback.
All reactions