$ npm install @vuepress/markdown
markdown library for vuepress
A map constant containing the names of all built-in markdown-it plugins.
const { isRequiredPlugin } = require('@vuepress/markdown')
console.log(isRequiredPlugin(PLUGINS.COMPONENT)) // true
console.log(isRequiredPlugin(PLUGINS.HIGHLIGHT_LINES)) // false
Remove the specified built-in markdown-it plugin in VuePress.
It's needed to use with VuePress's Plugin API > chainMarkdown.
// Your VuePress Plugin or site config.
const { removePlugin } = require('@vuepress/markdown')
module.exports = {
chainMarkdown (config) {
removePlugin(config, PLUGINS.HIGHLIGHT_LINES)
}
}
Note that
PLUGINS.COMPONENT
andPLUGINS.ANCHOR
are required in VuePress, It is forbidden to delete them!
Remove all built-in but not 100% necessary markdown-it plugins in VuePress.
// Your VuePress Plugin or site config.
module.exports = {
chainMarkdown (config) {
require('@vuepress/markdown').removeAllBuiltInPlugins(config)
}
}
© 2010 - cnpmjs.org x YWFE | Home | YWFE