element-plus/docs/.vitepress/plugins/table-wrapper.ts

7 lines
216 B
TypeScript
Raw Normal View History

import type MarkdownIt from 'markdown-it'
export default (md: MarkdownIt): void => {
md.renderer.rules.table_open = () => '<div class="vp-table"><table>'
md.renderer.rules.table_close = () => '</table></div>'
}