You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
HTML comment in markdown="1" block causes conversion stoppage #1012
frommarkdownimportmarkdownasmdt1="""<div markdown="1">***This is markdownized***<!---foobar-->***This is not markdownized***</div>"""md(t1,extensions=["extra"])
Yields:
'<div>\n<p><strong><em>This is markdownized</em></strong></p>\n<!---foobar-->\n\n***This is not markdownized***\n\n</div>'
Anything within the <div> after the HTML comment is not processed.
Bug, or just unexpected behavior for me?
Relevant fact: PHP Extra does not have this behavior; it does continue processing as markdown after the comment.
Activity
waylan commentedon Aug 12, 2020
This will be addressed by #803 which is completely replacing the existing raw HTML parser.
Add test for case in Python-Markdown#1012.
Refactor HTML Parser (Python-Markdown#803)