提交 2d596506 编写于 作者: M Mactavish 提交者: ULIVZ

docs: fix wrong demonstration of add new markdown-it plugin (#999)

上级 810acda1
......@@ -215,7 +215,7 @@ module.exports = {
// Add extra markdown-it plugin
config
.plugin('sup')
.add(require('markdown-it-sup'))
.use(require('markdown-it-sup'))
// Remove internal plugin
config.plugins.delete('snippet')
......@@ -302,10 +302,10 @@ module.exports = {
regularPath, // current page's default link (follow the file hierarchy)
path, // current page's real link (use regularPath when permalink does not exist)
} = $page
// 1. Add extra fields.
page.xxx = 'xxx'
// 2. Change frontmatter.
frontmatter.sidebar = 'auto'
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册