It would be nice if this library had an option to enable html embedding of audio and video.
As an example, pandoc already supports this using the image embed syntax.
Example file:



Pandoc:
$ pandoc test.md --to html5
<p><img src="image.png" /></p>
<p><video src="video.mp4" controls=""><a
href="video.mp4">Video</a></video></p>
<p><audio src="audio.wav" controls=""><a
href="audio.wav">Audio</a></audio></p>
Currently, for the same input, pulldown-cmark outputs:
<p><img src="image.png" alt="" /></p>
<p><img src="video.mp4" alt="" /></p>
<p><img src="audio.wav" alt="" /></p>
For anyone else with this issue: as workaround for now, you can just put <video> tags directly in the markdown, and pulldown-cmark will leave them there in the generated html.
It would be nice if this library had an option to enable html embedding of audio and video.
As an example, pandoc already supports this using the image embed syntax.
Example file:
Pandoc:
Currently, for the same input, pulldown-cmark outputs:
For anyone else with this issue: as workaround for now, you can just put
<video>tags directly in the markdown, and pulldown-cmark will leave them there in the generated html.