Files
element-plus/docs/.vitepress/config/plugins.ts
Noblet Ouways 2f17df1209 style(eslint-config): newline before import type (#21036)
* 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 commit db0116a288.

* Revert "chore: fix"

This reverts commit 69c82a90c0.

* chore: fix

* style: `pnpm lint:fix`

* fix: lint

* chore: `pnpm format`
2025-06-16 15:37:12 +08:00

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