Skip to content

Commit c34ecb8

Browse files
docs: update default option of markdown.anchor (#18)
Co-authored-by: meteorlxy <meteor.lxy@foxmail.com>
1 parent 0d81e99 commit c34ecb8

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

docs/reference/config.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -370,11 +370,9 @@ Since VuePress will load temp files during dev and build, the temp directory sho
370370
```ts
371371
const defaultOptions = {
372372
level: [1, 2, 3, 4, 5, 6],
373-
permalink: anchorPlugin.permalink.ariaHidden({
373+
permalink: anchorPlugin.permalink.headerLink({
374374
class: 'header-anchor',
375-
symbol: '#',
376-
space: true,
377-
placement: 'before',
375+
safariReaderFix: true,
378376
}),
379377
}
380378
```

docs/zh/reference/config.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -369,11 +369,9 @@ VuePress 在开发和构建时会加载临时文件,因此临时文件目录
369369
```ts
370370
const defaultOptions = {
371371
level: [1, 2, 3, 4, 5, 6],
372-
permalink: anchorPlugin.permalink.ariaHidden({
372+
permalink: anchorPlugin.permalink.headerLink({
373373
class: 'header-anchor',
374-
symbol: '#',
375-
space: true,
376-
placement: 'before',
374+
safariReaderFix: true,
377375
}),
378376
}
379377
```

0 commit comments

Comments
 (0)