Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

gitbook-plugin-mdtabs

walkable-server8Apache-2.01.0.0

Markdown code blocks for GitBook

gitbook, code

readme

mdtabs

A fork of codetabs that renders markdown in tab body so you have more flexibility. Preview

Installation

Adds the plugin to your book.json, then run gitbook install if you are building your book locally.

{
    "plugins": ["mdtabs"]
}

Usage


This is a code block with tabs for each languages:

{% mdtabs title="Python" %}
## can have headers here
```python
msg = "Hello World"
print msg
```
{% mdtab title="JavaScript" %}
```js
var msg = "Hello World";
console.log(msg);
```
{% mdtab title="HTML" %}
```html
Hello World
```
{% endmdtabs %}