AsciiPlayer for WordPress.
Go to file
2023-06-05 20:37:51 +08:00
asciiplayer docs: Add a Readme document for the adapter. 2023-06-05 13:51:33 +08:00
.gitignore git: Add exclusion directory. 2023-06-05 20:37:51 +08:00
asciicast-player.php refactor: Change the plugin main file name to plugin id. 2023-06-05 20:37:47 +08:00
LICENSE feat: The first available version. 2023-06-05 05:03:04 +08:00
README-zh.md feat: The first available version. 2023-06-05 05:03:04 +08:00
README.md feat: The first available version. 2023-06-05 05:03:04 +08:00
readme.txt docs: Add a new label and supplement the asciinema-player version number in the changelog. 2023-06-05 20:04:05 +08:00

wp-asciiplayer

Play Ascicast files in the post!

中文文档

Quick start

Add a shortcode to the post and enter the following:

[asciiplayer]https://asciinema.org/a/28307.cast[/asciiplayer]

The content of the shortcode is the URL of the ascicast file.

Options

The AsciiPlayer shortcode supports the options supported by Asciinema-player, such as setting fit to height and closing the control bar:

[asciiplayer fit="height" controls="false"]https://asciinema.org/a/28307.cast[/asciiplayer]

You can find all available options here.

Currently, only the logger option is not supported because it requires an object to be passed in.

Style options

For the convenience of customizing player elements, the plugin has added an additional style option, which corresponds to the style attribute of the player container element:

[asciiplayer style="width: 80%;"]https://asciinema.org/a/28307.cast[/asciiplayer]