markdown-it-table-wrap
v1.0.0
Published
markdown-it plugin which wraps table into div and add class for custom styling.
Downloads
108
Maintainers
Readme
markdown-it-table-wrap
markdown-it plugin which wraps table into div and add class for custom styling.
Install
Via npm
npm install markdown-it-table-wrap
Via Yarn
yarn add markdown-it-table-wrap
Usage
const markdownit = require('markdown-it');
const markdownitTableWrap = require('markdown-it-table-wrap').default;
const md = markdownit();
const testString = `
| Syntax | Description |
| ----------- | ----------- |
| Header | Title |
| Paragraph | Text |
`;
md.use(markdownitTableWrap);
console.log(md.render(testString));