-
Notifications
You must be signed in to change notification settings - Fork 893
Closed
Labels
bugBug report.Bug report.coreRelated to the core parser code.Related to the core parser code.someday-maybeApproved low priority request.Approved low priority request.
Description
First thank you for this implementation! 👍
I provide a minimal working example of some unexpected behavior I encountered:
import markdown
md = markdown.Markdown(extensions=['extra'])
html = md.convert("<div markdown><p>Hello _World!_</p></div>")
print(html)The output was
<div>
<p><p>Hello <em>World!</em></p></p>
</div>But I expected
<div>
<p>Hello <em>World!</em></p>
</div>My workaround is to use two line breaks (edit)
html = md.convert("<div markdown>\n\n<p>Hello _World!_</p></div>")does not include the additional paragraph, but the Markdown is not replaced.
Kristinita
Metadata
Metadata
Assignees
Labels
bugBug report.Bug report.coreRelated to the core parser code.Related to the core parser code.someday-maybeApproved low priority request.Approved low priority request.