File tree 3 files changed +11
-2
lines changed
3 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ Outbound links automatically gets `target="_blank" rel="noopener noreferrer"`:
53
53
- [ vuejs.org] ( https://vuejs.org )
54
54
- [ VuePress on GitHub] ( https://github.com/vuejs/vuepress )
55
55
56
- You can customize the attributes added to external links by setting ` config.markdown.externalLinks ` . See more [ here ] ( /config/#markdown-externalLinks ) .
56
+ You can customize the attributes added to external links by setting [ config.markdown.externalLinks] ( .. /config/#markdown-externallinks ) .
57
57
58
58
## Front Matter
59
59
Original file line number Diff line number Diff line change @@ -133,6 +133,13 @@ module.exports = {
133
133
134
134
[ markdown-it-anchor] ( https://github.com/valeriangalliat/markdown-it-anchor ) 的选项。
135
135
136
+ ### markdown.externalLinks
137
+
138
+ - Type: ` Object `
139
+ - Default: ` { target: '_blank', rel: 'noopener noreferrer' } `
140
+
141
+ 这个键值对将会作为特性被增加到是外部链接的 ` <a> ` 标签上,默认的选项将会在新窗口中打开一个该外部链接。
142
+
136
143
### markdown.toc
137
144
138
145
- 类型: ` Object `
Original file line number Diff line number Diff line change 48
48
49
49
### 外部链接
50
50
51
- 外部的链接将会被自动地设置为 ` target="_blank" ` :
51
+ 外部的链接将会被自动地设置为 ` target="_blank" rel="noopener noreferrer" ` :
52
52
53
53
- [ vuejs.org] ( https://vuejs.org )
54
54
- [ VuePress on GitHub] ( https://github.com/vuejs/vuepress )
55
55
56
+ 你可以自定义通过配置 [ config.markdown.externalLinks] ( ../config/#markdown-externallinks ) 来自定义外部链接的特性。
57
+
56
58
## Front Matter
57
59
58
60
VuePress 提供了对 [ YAML front matter] ( https://jekyllrb.com/docs/frontmatter/ ) 开箱即用的支持:
You can’t perform that action at this time.
0 commit comments