docbrown/app/views/liquids/_asciinema.html.erb
Michael Kohl a9e1e71e1f Add Asciinema Liquid tag (#4152)
* Add Asciinema Liquid tag

Closes #4135

* Fix Iframe URL

* Remove unnecessary regex modifier

* Re-add accidentally deleted closing tag and set iframe height

* Improve error message for invalid ID

Co-Authored-By: Andy Zhao <andyzhao.zhao@gmail.com>
2019-10-02 11:39:19 -04:00

8 lines
210 B
Text

<div class="ltag_asciinema">
<iframe frameborder="0"
scrolling="no"
id="asciinema_<%= id %>"
src="https://asciinema.org/a/<%= id %>/iframe"
style="width:100%;height:50vh;">
</iframe>
</div>