hexo-filter-asciinema

A simple plugin which can embed asciinema-player in your article.

Usage no npm install needed!

<script type="module">
  import hexoFilterAsciinema from 'https://cdn.skypack.dev/hexo-filter-asciinema';
</script>

README

hexo-filter-asciinema

npm NPM version npm Codacy Badge GitHub license

NPM

Desciption

A simple plugin which can embed asciinema-player in your article with local file.

Though the plugin hexo-tag-asciinema does a similar thing . That one relies on asciinema.org , while this one relies just on local file.

Configuration

Add the following configuration in the _config.yml of your site.

# hexo-filter-asciinema
asciinema:
  enable: true

Usage

When you want to add asciicast.json in your article, just put the file in the right place and write like this:

[@asciinema](path/to/asciicast.cast)