1.0.1 • Published 8 years ago

gitbook-plugin-codeblock-label v1.0.1

Weekly downloads
55
License
MIT
Repository
github
Last release
8 years ago

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 ↓

screenshot