-
Notifications
You must be signed in to change notification settings - Fork 892
Closed
Labels
bugBug report.Bug report.confirmedConfirmed bug report or approved feature request.Confirmed bug report or approved feature request.coreRelated to the core parser code.Related to the core parser code.
Description
I have made an extension to replace <img> tags with <figure> and <picture> tags. This is the expected output:
<picture>
<source ...>
<img ...>
</picture>Unfortunately, the <source> element has a closing </source> tag. That's invalid HTML. I traced it to this line in the code. The source element is missing from Python Markdown's internal list of empty elements.
The full list of empty elements includes:
<area>
<base>
<br>
<col>
<embed>
<hr>
<img>
<input>
<link>
<meta>
<param> (deprecated)
<source>
<track>
<wbr>
Metadata
Metadata
Assignees
Labels
bugBug report.Bug report.confirmedConfirmed bug report or approved feature request.Confirmed bug report or approved feature request.coreRelated to the core parser code.Related to the core parser code.