Skip to content

Latest commit

 

History

History
39 lines (32 loc) · 643 Bytes

README.md

File metadata and controls

39 lines (32 loc) · 643 Bytes

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 %}