asciidoctor-backends icon indicating copy to clipboard operation
asciidoctor-backends copied to clipboard

inline video is not supported

Open cmoulliard opened this issue 11 years ago • 3 comments

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>

cmoulliard avatar Jan 13 '14 18:01 cmoulliard

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 ?

cmoulliard avatar Jan 13 '14 18:01 cmoulliard

Sounds like a great time to add a test :)

LightGuard avatar Jan 13 '14 18:01 LightGuard

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.

mojavelinux avatar Jul 03 '14 08:07 mojavelinux