mirror of
https://github.com/pengzhanbo/vuepress-theme-plume.git
synced 2026-04-23 10:58:13 +08:00
76 lines
1.4 KiB
TypeScript
76 lines
1.4 KiB
TypeScript
import type { MarkdownEnhancePluginOptions } from 'vuepress-plugin-md-enhance'
|
|
import type { MarkdownPowerPluginOptions } from 'vuepress-plugin-md-power'
|
|
import type { MarkdownOptions, ThemeBuiltinPlugins } from '../../shared/index.js'
|
|
|
|
export const PLUGINS_SUPPORTED_FIELDS: (keyof ThemeBuiltinPlugins)[] = [
|
|
'search',
|
|
'docsearch',
|
|
'copyCode',
|
|
'shiki',
|
|
'git',
|
|
'nprogress',
|
|
'photoSwipe',
|
|
'markdownEnhance',
|
|
'markdownPower',
|
|
'markdownImage',
|
|
'markdownMath',
|
|
'markdownInclude',
|
|
'comment',
|
|
'sitemap',
|
|
'seo',
|
|
'cache',
|
|
'readingTime',
|
|
'watermark',
|
|
]
|
|
|
|
export const MARKDOWN_ENHANCE_FIELDS: (keyof MarkdownEnhancePluginOptions)[] = [
|
|
'chartjs',
|
|
'echarts',
|
|
'mermaid',
|
|
'markmap',
|
|
'plantuml',
|
|
'flowchart',
|
|
'revealJs',
|
|
'playground',
|
|
'vuePlayground',
|
|
'kotlinPlayground',
|
|
'sandpack',
|
|
]
|
|
|
|
export const MARKDOWN_POWER_FIELDS: (keyof MarkdownPowerPluginOptions)[] = [
|
|
'abbr',
|
|
'annotation',
|
|
'artPlayer',
|
|
'audioReader',
|
|
'bilibili',
|
|
'caniuse',
|
|
'codeSandbox',
|
|
'codeTabs',
|
|
'codepen',
|
|
'demo',
|
|
'fileTree',
|
|
'icons',
|
|
'imageSize',
|
|
'jsfiddle',
|
|
'npmTo',
|
|
'pdf',
|
|
'plot',
|
|
'repl',
|
|
'replit',
|
|
'timeline',
|
|
'collapse',
|
|
'chat',
|
|
'youtube',
|
|
]
|
|
|
|
export const MARKDOWN_SUPPORT_FIELDS: (keyof MarkdownOptions)[] = [
|
|
...(MARKDOWN_ENHANCE_FIELDS as (keyof MarkdownOptions)[]),
|
|
...MARKDOWN_POWER_FIELDS,
|
|
'oldDemo',
|
|
'image',
|
|
'math',
|
|
'include',
|
|
'hint',
|
|
'alert',
|
|
]
|