wp-asciiplayer/asciiplayer
dependabot[bot] 9c9a46f58a
build(deps-dev): Bump css-loader from 6.10.0 to 7.1.0 in /asciiplayer
Bumps [css-loader](https://github.com/webpack-contrib/css-loader) from 6.10.0 to 7.1.0.
- [Release notes](https://github.com/webpack-contrib/css-loader/releases)
- [Changelog](https://github.com/webpack-contrib/css-loader/blob/master/CHANGELOG.md)
- [Commits](https://github.com/webpack-contrib/css-loader/compare/v6.10.0...v7.1.0)

---
updated-dependencies:
- dependency-name: css-loader
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-09 12:03:02 +00:00
..
src feat: The first available version. 2023-06-05 05:03:04 +08:00
styles feat: The first available version. 2023-06-05 05:03:04 +08:00
.gitignore docs: Add a Readme document for the adapter. 2023-06-05 13:51:33 +08:00
package-lock.json build(deps-dev): Bump css-loader from 6.10.0 to 7.1.0 in /asciiplayer 2024-04-09 12:03:02 +00:00
package.json build(deps-dev): Bump css-loader from 6.10.0 to 7.1.0 in /asciiplayer 2024-04-09 12:03:02 +00:00
README.md docs: Add a Readme document for the adapter. 2023-06-05 13:51:33 +08:00
webpack.config.js feat: The first available version. 2023-06-05 05:03:04 +08:00

wp-asciiplayer-adapter

This library needs to be used with the WordPress Ascicast Player plugin.

How to work

The Asciicast Player plugin will generate a div element containing the parameters required for asciicast playback for the asciiplayer short code in the post:

<div class="asciiplayer-container" 
     data-ap-src="https://asciinema.org/a/28307.cast" 
     data-ap-opts="%7B%22fit%22%3A%22width%22%2C%22preload%22%3Atrue%7D">
</div>

Then, the adapter will search for these div elements and use asciinema-player to create an Asciicast player within the div elements.