Skip to content

Markdown_to_html cannot handle HTML elements #2337

@jannekalliola

Description

@jannekalliola

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No fields configured for Bug.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions