How to remove DIV with a specific class from output? #636
-
QuestionHi there, I'm try to figure out a solution for the following problem. This is my markdown code:
I want to exclude everything withing the div with class "hidden" from converting to HTML. As result, I would expect:
Can somebody help me, how that can be done? I tried Listener, Parser and Renderer - nothing works, as I want. Thanks in advance |
Beta Was this translation helpful? Give feedback.
Answered by
markhalliwell
Mar 2, 2021
Replies: 1 comment
-
While Markdown allows raw HTML, it doesn't parse it. You will need a different library (or even just use DOMDocument) to traverse the HTML and remove it that way. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
colinodell
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
While Markdown allows raw HTML, it doesn't parse it. You will need a different library (or even just use DOMDocument) to traverse the HTML and remove it that way.