Asciinema Terminal Recordings #192
Replies: 2 comments 3 replies
-
|
I had some typos in it and I think I figured out the link-parameter thingy: this seems to works fine and I use it with I have assigned the output to the variable _ so I do not get some json on the page. Is there a more elegant way to suppress output? |
Beta Was this translation helpful? Give feedback.
-
|
I have never heard of ASCIINEMA ... sounds very interesting ... Maybe this can help ... added a helper macro ... the first sets some optional parameters, <!--
script: https://cdn.jsdelivr.net/npm/asciinema-player@3.8.0/dist/bundle/asciinema-player.min.js
link: https://cdn.jsdelivr.net/npm/asciinema-player@3.8.0/dist/bundle/asciinema-player.min.css
@asciinema: @asciinema_helper(@uid,@0,@1)
@asciinema2: @asciinema_helper(@uid,width: 100%; height 65vh,@0)
@asciinema_helper
<div id="id_@0" style="@1"></div>
<script run-once modify="false">
AsciinemaPlayer.create('@2', document.getElementById('id_@0'));
console.log("The last statement has to be undefined to prevent beeing displayed")
</script>
@end
-->
# Course
@[asciinema(width: 100%; height 65vh)](cast/test.cast)
@[asciinema2](cast/test.cast)I hope this works and makes sense ;-) ... This looks like an interesting template that you could also publish. By tagging your project with |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to embed terminal recordings with asciinema
I tried
I load this via
asciinema(test)but it gives errors I do not understand, e.g.missing ) after argument listI reckon I should use the parameter format that uses markdown links... but the documentation is very sparse and I cannot get it to work
Am I close to the solution? or what am I misunderstanding?
Beta Was this translation helpful? Give feedback.
All reactions