1.0.0 • Published 8 years ago
gitbook-plugin-es6tabs v1.0.0
es6tabs
Include ES 6 code blocks, with automatically generated ES 5 preview using Babel.
Installation
Adds the plugin to your book.json
, then run gitbook install
if you are building your book locally.
{
"plugins": ["es6tabs"]
}
Usage
This is some ES 6 code, you can also see the ES 5 output:
{% es6 -%}
import {test} from './test';
let myVar = 'test';
{%- endes6 %}
1.0.0
8 years ago