asciidoctor-backends
asciidoctor-backends copied to clipboard
inline video is not supported
When video option is added in a paragraph or a table
[width="100%"]
|==============================================
|video:video/bob_waterslide.mp4[] |
|==============================================
HTML is not rendered with a videoblock as until now the existing templates does not support inline video like inline image, ...
<table class="tableblock frame-all grid-all" style="width:100%; ">
<colgroup>
<col style="width:50%;">
<col style="width:50%;">
</colgroup>
<tbody>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock">video:video/bob_waterslide.mp4[]</p></td>
<td class="tableblock halign-left valign-top"></td>
</tr>
</tbody>
</table>
Question: To add a missing inlineTemplate, the way to go to resolve the issue is to:
- do modification in asciidoctor core project (add a VideoInlineTemplate ... ) and next
- add to haml/slim/erb HTML5 the HTML code ?
Sounds like a great time to add a test :)
I think it's appropriate to add the AsciiDoc style (i.e., a) to the table cell and use the video block macro. A video isn't really an inline element.