Re: <img> instead of <video> tag inserted for image:: foo.mp4

Guenter Milde via Docutils-users <[email protected]> Fri, 29 Apr 2022 10:54:37 +0200
Newsgroups gmane.text.docutils.user
Message-ID <[email protected]>
On 2022-04-27, Agathe Porte wrote in gmane.text.docutils.user:
> Dear Docutils maintainers,

> I am using docutils 0.18.1. When feeding the following input to docutils 
> via pelican [0] :

> .. image:: 
> /blog/2022/04/27/exporting-mov-and-mp4-animations-from-gimp/out.mp4
>     :alt: test

> I get the following HTML output:

><img alt="test" 
> src="/blog/2022/04/27/exporting-mov-and-mp4-animations-from-gimp/out.mp4">

> However, according to the documentation [1], this should export a 
><video> tag instead of a <img> tag given that the file extension is ".mp4".

It seems that Pelican (at least with your configuration) uses the
traditional HTML4 writer for HTML export.

Only the `HTML5 writer`_ supports video. Finding out how/whether Pelican
can be configured to use the HTML5 writer is left as an exercise for the
reader.



.. HTML5 writer: 
   https://docutils.sourceforge.io/docs/user/html.html#html5-polyglot


> [0] https://blog.getpelican.com/
> [1] https://docutils.sourceforge.io/docs/ref/rst/directives.html#footnote-1

y


_______________________________________________
Docutils-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/docutils-users

Please use "Reply All" to reply to the list.