logo
0
0
Login

vite-plugin-tdoc

Transform markdown into anything for vite plugin.

Inspired by vitepress

Getting started

// vite config import vitePluginTdoc from 'vite-plugin-tdoc'; export default { plugins: [ vitePluginTdoc({ markdown: { container(md, container) {}, // markdown-it-container attrs: {}, // markdown-it-attrs anchor: {}, // markdown-it-anchor toc: {}, // markdown-it-toc-done-right config(md) {}, // custom md config lineNumbers: false, // highlight lineNumber }, plugins: [], // other plugins for vite transforms: { // markdown transform progress before({ source, file, md }) {}, // before transform render({ source, file, md }) {}, // custom render or use default render after({ result, source, file, md }) {} // after render or default render } }) ] }

Schematics

Schematics

License

MIT.

About

No description, topics, or website provided.
321.00 KiB
0 forks0 stars2 branches5 TagREADMEMIT license
Language
JavaScript88.5%
Markdown5.5%
Dockerfile1.8%
SVG1.4%
Others2.8%