Skip to content

docs: update default option of markdown.anchor #18

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions docs/reference/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -370,11 +370,9 @@ Since VuePress will load temp files during dev and build, the temp directory sho
```ts
const defaultOptions = {
level: [1, 2, 3, 4, 5, 6],
permalink: anchorPlugin.permalink.ariaHidden({
permalink: anchorPlugin.permalink.headerLink({
class: 'header-anchor',
symbol: '#',
space: true,
placement: 'before',
safariReaderFix: true,
}),
}
```
Expand Down
6 changes: 2 additions & 4 deletions docs/zh/reference/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -369,11 +369,9 @@ VuePress 在开发和构建时会加载临时文件,因此临时文件目录
```ts
const defaultOptions = {
level: [1, 2, 3, 4, 5, 6],
permalink: anchorPlugin.permalink.ariaHidden({
permalink: anchorPlugin.permalink.headerLink({
class: 'header-anchor',
symbol: '#',
space: true,
placement: 'before',
safariReaderFix: true,
}),
}
```
Expand Down
Loading