Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

gitbook-plugin-mp3-player

springlcy7MIT1.0.0

plugin for generating audio in gitbook.

mp3 player, audio

readme

markdown audio plugin for GitBook

Plugin for GitBook 3 which renders audio detected in the book markdown.

How to install it?

You can use install via NPM:

$ npm install gitbook-plugin-mp3-payer

And use it for your book with in the book.json:

{
  "plugins": ["mp3-player"]
}

How to use it?

Just put the mp3 list into fenced code block and tag it mp3 key word like this:

[
  {
    title: "AAA",
    cover: "images/cover0.jpg",
    mp3: "http://example.com/1.mp3",
  },
   {
    title: "BBB",
    cover: "images/cover1.jpg",
    mp3: "http://example.com/2.mp3",
  }
]

Thanks

Thanks to PROMULGATOR, the original author of this mp3 player. You can find the source cod of this mp3 player at http://www.jq22.com/jquery-info3249