Show your code blocks in different tabs.
npm install markdown-it-codetabs> Code tabs plugin for markdown-it markdown parser.
``bash`
npm install markdown-it-codetabs --save
1. Render your file:
`jsgroup
var md = require('markdown-it')()
.use(require('markdown-it-codetabs'));
// 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
`js [g1:JavaScript]`
console.log("hello");
`py [g1:Python3]``
print("hello")
~~~
Notice: DON'T add anything except white space between two code blocks.