Skip to content

HTML comment in markdown="1" block causes conversion stoppage #1012

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
git1sal opened this issue Aug 11, 2020 · 1 comment
Closed

HTML comment in markdown="1" block causes conversion stoppage #1012

git1sal opened this issue Aug 11, 2020 · 1 comment
Labels
bug Bug report. confirmed Confirmed bug report or approved feature request. extension Related to one or more of the included extensions.

Comments

@git1sal
Copy link

git1sal commented Aug 11, 2020

from markdown import markdown as md

t1 = """<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.

@waylan
Copy link
Member

waylan commented Aug 12, 2020

This will be addressed by #803 which is completely replacing the existing raw HTML parser.

waylan added a commit to waylan/markdown that referenced this issue Sep 15, 2020
@waylan waylan added bug Bug report. confirmed Confirmed bug report or approved feature request. extension Related to one or more of the included extensions. labels Sep 17, 2020
@waylan waylan closed this as completed in b701c34 Sep 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bug report. confirmed Confirmed bug report or approved feature request. extension Related to one or more of the included extensions.
Projects
None yet
Development

No branches or pull requests

2 participants