mdsh icon indicating copy to clipboard operation
mdsh copied to clipboard

add asciinema output

Open zimbatm opened this issue 5 years ago • 1 comments

for long-running processes, it might be nice to record the output, and have a "player" to replay it, instead of having it inline in the document.

something like asciinema

zimbatm avatar Mar 01 '19 13:03 zimbatm

Just in case you don't know it already, there's https://github.com/Byron/termbook/ which supports the creation of asciinema recordings from markdown code blocks. It's a plugin for https://rust-lang.github.io/mdBook/ and uses cmark-pulldown as a parser and https://github.com/Byron/pulldown-cmark-to-cmark/tree/main to serialize the AST back into markdown.

I've stumbled upon it while playing around with related ideas in https://github.com/phaer/mdbook-nix/ .

phaer avatar May 10 '23 10:05 phaer