Skip to content

Goopil/gitbook-collapse

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitBook collapse

install

open book.json, add collapse in "plugins"

{ "plugins": [ "other-plugin", "collapse" ] }

usage

wrap the content you want to collapse with:

{% collapse %}

* list 1
* list 2
* list 3
    * list 3.1
    
{% endcollapse %}

you can specify a title with

{% collapse title="my list" %}

* list 1
* list 2
* list 3
    * list 3.1
    
{% endcollapse %}

specify no process in the block

{% collapse title="my list", process=false %}

<h1>hello</h1>
    
{% endcollapse %}

Todo

  • hide collapses in pdf, ebook etc