Describe the bug
The markdown_to_html filter does not transform Markdown if it contains HTML elements.
To reproduce
Have Markdown code with HTML in a variable:
# Privacy Policy
<article class="directtext">
Some text here
</article>
Try to render it in a template
{{ mdvariable | markdown_to_html }}
Markdown code before the first HTML element is rendered nicely and after that there is only Markdown source code.
Expected behavior
The filter should render the whole Markdown content as MD specification allows inclusion of HTML tags.
Version
8.7.9
Operating System
No response
Relevant log output
Describe the bug
The
markdown_to_htmlfilter does not transform Markdown if it contains HTML elements.To reproduce
Have Markdown code with HTML in a variable:
Try to render it in a template
{{ mdvariable | markdown_to_html }}Markdown code before the first HTML element is rendered nicely and after that there is only Markdown source code.
Expected behavior
The filter should render the whole Markdown content as MD specification allows inclusion of HTML tags.
Version
8.7.9
Operating System
No response
Relevant log output