Skip to content

openordu/markdown-it-tabs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

markdown-it-codetabs

Code tabs plugin for markdown-it markdown parser.

Install

npm install markdown-it-codetabs --save

Use

  1. Render your file:

    var md = require('markdown-it')()
                .use(require('markdown-it-codetabs'));
    // `group` and `tab` can only contain characters in [A-Za-z0-9_].
    md.render('```js [group:tab]\nconsole.log("hello");\n```');
  2. Import your own styles, you can start from codetabs.scss.

MD Example

```js [g1:JavaScript]
console.log("hello");
```

```py [g1:Python3]
print("hello")
```

Notice: DON'T add anything except white space between two code blocks.

About

Fork of markdown-it-codetabs without the code part.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published