Files
vuepress/packages/@vuepress/markdown/lib/constant.js
ULIVZ 15af271a80 feat($markdown): ability to disable built-in markdown extensions
chainMarkdown (config) {
    require('@vuepress/markdown').removeAllBuiltInPlugins(config)
  }

Note that COMPONENT and ANCHOR plugin are required in VuePress, It is forbidden to delete them!
2018-11-14 01:17:58 +08:00

20 lines
483 B
JavaScript

exports.PLUGINS = {
COMPONENT: 'component',
HIGHLIGHT_LINES: 'highlight-lines',
PRE_WRAPPER: 'pre-wrapper',
SNIPPET: 'snippet',
CONVERT_ROUTER_LINK: 'convert-router-link',
HOIST_SCRIPT_STYLE: 'hoist-script-style',
CONTAINERS: 'containers',
MARKDOWN_SLOTS_CONTAINERS: 'markdown-slots-containers',
ANCHOR: 'anchor',
EMOJI: 'emoji',
TOC: 'toc',
LINE_NUMBERS: 'line-numbers'
}
exports.REQUIRED_PLUGINS = [
exports.PLUGINS.COMPONENT,
exports.PLUGINS.ANCHOR
]