0.2.1 • Published 3 years ago

markdown-it-mdcat-table v0.2.1

Weekly downloads
11
License
MIT
Repository
github
Last release
3 years ago

markdown-it-mdcat-table

Plugin for markdown-it markdown parser, adding mdcat.table syntax.

Install

npm install markdown-it-mdcat-table --save

Use

init

var md = require('markdown-it')()
        .use(require('markdown-it-mdcat-table'));

var src =  '```mdcat.table\n';
        += '|left  |center|right |\n';
        += '|:-----|:----:|-----:|\n';
        += '|      |>     |      |\n';
        += '|>     |hello |<     |\n';
        += '|      |<     |      |\n';
        += '\n';
        += '# hello\n';
        += 'Hello World!\n';
        += '```';
md.render(src);

change code block name

var md = require('markdown-it')()
        .use(require('markdown-it-mdcat-table'), { 'codeBlockName' : 'yourName'});

License

MIT