Skip to content
Block plugin which wraps content with a specific tag.
JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.editorconfig
.gitignore
.travis.yml
CHANGELOG.md
LICENSE.md
README.md
index.js
package.json

README.md

gitbook-plugin-wrapper

Block plugin which wraps content with a specific tag.

npm travis standard

Install

Add the below to your book.json file, then run gitbook install :

{
  "plugins": ["wrapper"]
}

Usage

You can now provide wraps in various ways using the wrap tag.

{% wrap element='div' className='container' %}
This text will be wrapped with div
{% endwrap %}

The above example will produce this html markdown:

<div class="container">
  <p>This text will be wrapped with div</p>
</div>

License

MIT

You can’t perform that action at this time.