1.0.0 • Published 7 years ago

gitbook-plugin-mp3-player v1.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
7 years ago

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