mirror of
https://github.com/xoofx/markdig.git
synced 2026-02-11 05:44:45 +00:00
HtmlCustomContainerRenderer does not honour EnableHtmlForBlock == false #222
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ghost on GitHub (Sep 10, 2018).
We're building our pipeline with the
UseAdvancedExtensionsmethod as part of it and using this pipeline for rendering the same piece of text as both HTML and plaintext. For the plaintext we are setting up a new HtmlRenderer as:However any content that 'HtmlCustomContainerRenderer' would pick up (i.e. between nested sets of 3 or more colons) is still rendered out as HTML. Having dug into the source I can see that 'HtmlCustomContainerRenderer' does not honour the 'EnableHtmlForBlock' bool that is set on the renderer, which every other extension we use does.
Any chance of this being honoured in a future release?
@xoofx commented on GitHub (Sep 10, 2018):
Don't remember the details about this, just a send a PR and I will have a look at it.