
Security News
Nx npm Packages Compromised in Supply Chain Attack Weaponizing AI CLI Tools
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.
vuepress-plugin-pad-markdown
Advanced tools
用于markdown增强的vuepress1.x插件
使用npm安装插件:
npm i vuepress-plugin-pad-markdown
或者使用yarn安装插件:
yarn add vuepress-plugin-pad-markdown
在VuePress配置文件中启用插件:
//.vuepress/config.js
module.exports = {
plugins: [
[
"pad-markdown",
{
useAllPlugins:true // 是否启用所有插件
}
]
],
}
现在已经开始使用啦!
其他配置如下
//.vuepress/config.js
module.exports = {
plugins: [
[
"pad-markdown",
{
useAllPlugins:false, // 是否启用所有插件
katex:true, // 是否启用katex
footnote:true, // 是否启用footnote
copy:true, // 是否启用复制按钮
mark:true, // 是否启用高亮
marmaid:true, // 是否启用marmaid
}
]
],
}
完整配置示例:
//.vuepress/config.js
module.exports = {
plugins: [
[
"pad-markdown",
{
useAllPlugins:false, // 是否启用所有插件
katex:true, // 是否启用katex
footnote:true, // 是否启用footnote
copy:true, // 是否启用复制按钮
mark:true, // 是否启用高亮
marmaid:true, // 是否启用marmaid
}
]
],
themeConfig: {
mdUseEventBus: true, // 是否启用主题事件总线(支持动态配置) 默认为true
mdDefaultTheme: "light", // 默认主题 light/dark/auto
mdCodeTheme: ["atom-one-dark", "atom-one-light"] // 默认代码高亮主题
}
}
Vue.prototype.$MdEventBus
Vue.prototype.$MdEventBus.$emit('clipboard-success')
Vue.prototype.$MdEventBus.$on('loadCodeTheme', (data))
,传入字符串数组,高亮选项请参考hightlight.js/css
Vue.prototype.$MdEventBus.$on('loadTheme', (data))
,传入字符串"light"或"dark"或"auto"@renovamen/vuepress-plugin-mermaid
的冲突问题highlight.js
支持的语言上FAQs
A vuepress plugin for code-copy,highlight,katex
The npm package vuepress-plugin-pad-markdown receives a total of 0 weekly downloads. As such, vuepress-plugin-pad-markdown popularity was classified as not popular.
We found that vuepress-plugin-pad-markdown demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.
Security News
CISA’s 2025 draft SBOM guidance adds new fields like hashes, licenses, and tool metadata to make software inventories more actionable.
Security News
A clarification on our recent research investigating 60 malicious Ruby gems.