gitbook-plugin-codeblock-label
v1.0.1
Published
Add a filenames above codeblocks
Downloads
29
Readme
Gitbook Plugin: Add labels to codeblocks
This is a gitbook plugin.
Id adds a label to codeblocks, it's useful for adding filenames over code blocks.
Usage
You can install this plugin via NPM and save it to package.json
.
The plugin requires gitbook >= 3, for older versions see the original package.
$ npm install gitbook-plugin-codeblock-label --save
Add the plugin to your book.json
:
{
plugins: [ "codeblock-label" ]
}
Then, you need only to insert before codeblock the code below.
Example
write this code ↓
then result is ↓