/gitbook-plugin-accordion

"Accordion ( spoiler / collapse ) plugin for GitBook"

Primary LanguageJavaScript

gitbook-plugin-accordion

npm

Example

https://artalar.github.io/gitbook-plugin-accordion/

Usage

In GitBook editor (or any else):

%accordion%Some title here%accordion%

Any content here

%/accordion%

that`s all! But each tag should be in one paragraph

similarly you can include accordion in accordion (like content)

IE11+ (flexboxes)

573 B minified, 282 B minified + gzipped

Install

Update book.json, like:

{
  "gitbook": "3.2.2",
  "title": "Cool book",
  "plugins": ["accordion"]
}

Then run

gibook install 

That`s all, see Usage