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>
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4