Including Vimeo videos in a document
Posted by
xcoulon on
URL: https://discuss.asciidoctor.org/Including-Vimeo-videos-in-a-document-tp492.html
Hello,
I'm trying to include videos published on Vimeo.com (and later on Youtube.com as well) in an Asciidoc document (as part of a website backed with awestruct), using the following syntax:
video::http://player.vimeo.com/video/67480300[height=300, widht=400]
This generates the following HTML fragment:
<video height="300" controls="" src="http://player.vimeo.com/video/67480300">
Your browser does not support the video tag.
</video>
But I'd like to have something like this instead:
<iframe class="vimeo" width="400" height="300" frameborder="0"
allowfullscreen="allowfullscreen" mozallowfullscreen="mozallowfullscreen"
webkitallowfullscreen="webkitallowfullscreen"
src="http://player.vimeo.com/video/67480300?title=0&byline=0&portrait=0">
#document
</iframe>
As I mentionned above, I'm using awestruct and I know that the "Textile Plus" extension allows for custom markers/blocks. I was wondering if there's something similar in Asciidoctor used in combination with awestruct
Thanks
Best regards,
Xavier