-
Notifications
You must be signed in to change notification settings - Fork 884
Open
Labels
bugBug report.Bug report.confirmedConfirmed bug report or approved feature request.Confirmed bug report or approved feature request.someday-maybeApproved low priority request.Approved low priority request.
Description
The following example shows that raw HTML that has empty newlines in the content are not handled properly, and are instead treated as incomplete HTML fragments.
import markdown
print(f"Markdown: {markdown.__version__}")
print("\n------ Results ------\n")
content = r'''
!!! note "Admonition"
<div>
Some text
Some more text
</div>
'''
print(markdown.markdown(content, extensions=['markdown.extensions.admonition']))
Output
Markdown: 3.3.3
------ Results ------
<div class="admonition note">
<p class="admonition-title">Admonition</p>
<p><div>
Some text</p>
<p>Some more text
</div></p>
</div>
Metadata
Metadata
Assignees
Labels
bugBug report.Bug report.confirmedConfirmed bug report or approved feature request.Confirmed bug report or approved feature request.someday-maybeApproved low priority request.Approved low priority request.