Asciinema

Asciinema is a CLI tool records and share terminal sessions, you can embed asciinema videos into Markdown content with this shortcode.

Syntax

1{{< asciinema [id] >}}

Parameters

id

PositionNameTypeRequiredDefaultSince
#0idstring--

The asciicast ID.

theme

PositionNameTypeRequiredDefaultSince
-themestring---

Theme.

Available options: asciinema, tango, solarized-dark, solarized-light, monokai.

autoplay

PositionNameTypeRequiredDefaultSince
-autoplayboolean-true-

Whether to auto play video.

speed

PositionNameTypeRequiredDefaultSince
-speednumber-1-

Playback speed.

cols

PositionNameTypeRequiredDefaultSince
-colsnumber---

Used to override width (in characters) of the emulated terminal.

rows

PositionNameTypeRequiredDefaultSince
-rowsnumber---

Used to override height (in lines) of the emulated terminal.

Examples

Default Asciinema

Source
1{{< asciinema 573031 >}}
Result

Asciinema with Theme

Source
1{{< asciinema id=573031 theme=solarized-dark >}}
Result

Asciinema with Auto Play

Source
1{{< asciinema id=573031 autoplay=true >}}
Result

Asciinema with Speed

Source
1{{< asciinema id=573031 speed=2.5 >}}
Result

Asciinema with Cols and Rows

Source
1{{< asciinema id=573031 cols=120 rows=20 >}}
Result