Skip to content

markdown-it plugin which wraps table into div and add class for custom styling.

License

Notifications You must be signed in to change notification settings

trunkcode/markdown-it-table-wrap

Repository files navigation

markdown-it-table-wrap

NPM version Downloads AppVeyor Build Status

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));

About

markdown-it plugin which wraps table into div and add class for custom styling.

Resources

License

Stars

Watchers

Forks

Packages

No packages published