mirror of
https://github.com/element-plus/element-plus.git
synced 2026-03-13 07:51:17 +08:00
* perf: change to import-x * feat: add rules * chore: fix rule * chore: fix * chore: fix * chore: fix * style: `pnpm lint:fix` * Revert "style: `pnpm lint:fix`" This reverts commitdb0116a288. * Revert "chore: fix" This reverts commit69c82a90c0. * chore: fix * style: `pnpm lint:fix` * fix: lint * chore: `pnpm format`
23 lines
810 B
TypeScript
23 lines
810 B
TypeScript
import mdContainer from 'markdown-it-container'
|
|
import { groupIconMdPlugin } from 'vitepress-plugin-group-icons'
|
|
import externalLinkIcon from '../plugins/external-link-icon'
|
|
import tableWrapper from '../plugins/table-wrapper'
|
|
import tooltip from '../plugins/tooltip'
|
|
import tag from '../plugins/tag'
|
|
import headers from '../plugins/headers'
|
|
import createDemoContainer from '../plugins/demo'
|
|
import { ApiTableContainer } from '../plugins/api-table'
|
|
|
|
import type { MarkdownRenderer } from 'vitepress'
|
|
|
|
export const mdPlugin = (md: MarkdownRenderer) => {
|
|
md.use(headers)
|
|
md.use(externalLinkIcon)
|
|
md.use(tableWrapper)
|
|
md.use(tooltip)
|
|
md.use(tag)
|
|
md.use(mdContainer, 'demo', createDemoContainer(md))
|
|
md.use(ApiTableContainer)
|
|
md.use(groupIconMdPlugin as unknown as (md: MarkdownRenderer) => void)
|
|
}
|