@dwspace/vuepress-plugin-md-plus
v2.0.0-alpha.26
Published
A plugin for enhancing Markdown in VuePress 2. Fork from gungnir theme
Downloads
7
Maintainers
Readme
@renovamen/vuepress-plugin-md-plus@next
A plugin for enhancing Markdown in VuePress 2. Now the following features are supported:
- footnote (supported by markdown-it-footnote)
- mark (supported by markdown-it-footnote)
Install
# pnpm
pnpm install @renovamen/vuepress-plugin-md-plus@next
# yarn
yarn add @renovamen/vuepress-plugin-md-plus@next
# npm
npm install @renovamen/vuepress-plugin-md-plus@next
Configuration
You can enable all features simply by:
const { mdPlusPlugin } = require("@renovamen/vuepress-plugin-md-plus");
module.exports = {
plugins: [
mdPlusPlugin({
all: true, // Enable all features or not, this will rewrite all the following options (default: false)
})
]
}
or enable them separately:
module.exports = {
plugins: [
mdPlusPlugin({
footnote: true, // Enable footnote or not (default: false)
mark: true // Enable mark or not (default: false)
})
]
}
Usage
Footnote
Add footnotes for text[^1]
[^1]: Write your footnote here.
Mark
Mark important information: "Excuse me. Can you tell me how much the shirt is?" "Yes, it's ==nine fifteen==."