Closed MartinPacker closed 2 years ago
HTML 5 has <audio>
and <video>
elements. These are perfectly reasonable things for a user to code - even in Markdown (as it can contain HTML).
One slightly tricky thing is the layout dimensions. I think for <video>
the width
and height
attributes could be used for the proportions, rather than being treated as actual pixel values.
This is coming along but it's causing mass refactoring of the image rendering code - including the creation of a parseMedia
function. This refactoring has already simplified the code and fixed a few edge cases.
Pushed code that supports
Pushed further code that supports retrieving video from the web.
<audio>
support remains to be done, as does documentation.
In HTML the <audio>
element doesn't have height
or width
attributes. I think it should probably have a square aspect ratio. When I support it I'll code it that way.
<audio>
support is done. As is documentation. All on the trunk.
Shipped in v3.0.
It's not clear to me how / whether Markdown or HTML could support a direct link to audio or video. python-pptx, however, definitely can.
(Personally, I don't have a pressing need for this. But if it's easy to use I just might.)