markdown-it plugin which wraps table into div and add class for custom styling.
Via npm
npm install markdown-it-table-wrap
Via Yarn
yarn add markdown-it-table-wrap
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));