markdown-it-mdcat-table
TypeScript icon, indicating that this package has built-in type declarations

0.2.1 • Public • Published

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

Package Sidebar

Install

npm i markdown-it-mdcat-table

Weekly Downloads

2

Version

0.2.1

License

MIT

Unpacked Size

41.4 kB

Total Files

9

Last publish

Collaborators

  • poyonshot