A fork of codetabs that renders markdown in tab body so you have more flexibility.
Adds the plugin to your book.json
, then run gitbook install
if you are building your book locally.
{
"plugins": ["mdtabs"]
}
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 %}