GitHub - walkable-server/plugin-mdtabs: Multiple languages code blocks for GitBook · GitHub
Skip to content

walkable-server/plugin-mdtabs

 
 

Folders and files

Repository files navigation

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

About

Multiple languages code blocks for GitBook

Resources

Stars

Watchers

Forks

Packages

Contributors

Languages

  • JavaScript 74.3%
  • CSS 25.7%