Skip to content

Commit 10ad27d

Browse files
committed
docs(cn): update for changing config of markdown-it (#477)
1 parent b7e545a commit 10ad27d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: docs/zh/config/README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -159,12 +159,13 @@ module.exports = {
159159
- 类型: `Function`
160160
- 默认值: `undefined`
161161

162-
一个用来对当前的 [markdown-it](https://github.com/markdown-it/markdown-it) 实例应用额外的插件的函数,举例如下:
162+
一个用于修改当前的 [markdown-it](https://github.com/markdown-it/markdown-it) 实例的默认配置,或者应用额外的插件的函数,举例如下:
163163

164164
``` js
165165
module.exports = {
166166
markdown: {
167167
config: md => {
168+
md.set({ breaks: true })
168169
md.use(require('markdown-it-xxx'))
169170
}
170171
}

0 commit comments

Comments
 (0)