/hexo-filter-asciinema

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

Primary LanguageCSSMIT LicenseMIT

hexo-filter-asciinema

npm NPM version npm 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)

Release

1.0.6

  • upgrade asciinema.js to 3.0.0-rc.1.
  • fix window.wrap error.