|
Is there an option or something that will force HtmlRenderer to close any tags left open by bad input? For example, if the user submits markdown that contains an opening ``` block, but never adds the close, like: When this renders the output will contain a tag to open the preformatted block, but not one to close it. So, if I embed that result into some page, the open tag will play havoc with that page. As the parser is in the best position to know that it opened that tag, it would be nice to tell it "you know, close all those open tags at the end for safety, even if the input sucks". |
Answered by
vsch
Apr 11, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@divnull, it seems like a bug in
HtmlRenderer. I will be addressing accumulated PRs and issues in the next couple of weeks.