@@ -9,6 +9,9 @@ describe('@vuepress/markdown > plugins > linksPlugin', () => {
9
9
'[https-github](https://github.com)' ,
10
10
'[http-github](http://github.com)' ,
11
11
'[github](//github.com)' ,
12
+ // autolink
13
+ '<https://github.com>' ,
14
+ '<http://github.com>' ,
12
15
] . join ( '\n\n' )
13
16
14
17
it ( 'should render default attrs and `<OutboundLink/>`' , ( ) => {
@@ -22,6 +25,8 @@ describe('@vuepress/markdown > plugins > linksPlugin', () => {
22
25
'<a href="https://github.com" target="_blank" rel="noopener noreferrer">https-github<OutboundLink/></a>' ,
23
26
'<a href="http://github.com" target="_blank" rel="noopener noreferrer">http-github<OutboundLink/></a>' ,
24
27
'<a href="//github.com" target="_blank" rel="noopener noreferrer">github<OutboundLink/></a>' ,
28
+ '<a href="https://github.com" target="_blank" rel="noopener noreferrer">https://github.com<OutboundLink/></a>' ,
29
+ '<a href="http://github.com" target="_blank" rel="noopener noreferrer">http://github.com<OutboundLink/></a>' ,
25
30
]
26
31
. map ( ( a ) => `<p>${ a } </p>` )
27
32
. join ( '\n' ) + '\n'
@@ -45,6 +50,8 @@ describe('@vuepress/markdown > plugins > linksPlugin', () => {
45
50
'<a href="https://github.com" target="_blank" rel="noopener noreferrer" foo="bar">https-github<OutboundLink/></a>' ,
46
51
'<a href="http://github.com" target="_blank" rel="noopener noreferrer" foo="bar">http-github<OutboundLink/></a>' ,
47
52
'<a href="//github.com" target="_blank" rel="noopener noreferrer" foo="bar">github<OutboundLink/></a>' ,
53
+ '<a href="https://github.com" target="_blank" rel="noopener noreferrer" foo="bar">https://github.com<OutboundLink/></a>' ,
54
+ '<a href="http://github.com" target="_blank" rel="noopener noreferrer" foo="bar">http://github.com<OutboundLink/></a>' ,
48
55
]
49
56
. map ( ( a ) => `<p>${ a } </p>` )
50
57
. join ( '\n' ) + '\n'
@@ -67,6 +74,8 @@ describe('@vuepress/markdown > plugins > linksPlugin', () => {
67
74
'<a href="https://github.com" target="_blank" rel="foobar">https-github<OutboundLink/></a>' ,
68
75
'<a href="http://github.com" target="_blank" rel="foobar">http-github<OutboundLink/></a>' ,
69
76
'<a href="//github.com" target="_blank" rel="foobar">github<OutboundLink/></a>' ,
77
+ '<a href="https://github.com" target="_blank" rel="foobar">https://github.com<OutboundLink/></a>' ,
78
+ '<a href="http://github.com" target="_blank" rel="foobar">http://github.com<OutboundLink/></a>' ,
70
79
]
71
80
. map ( ( a ) => `<p>${ a } </p>` )
72
81
. join ( '\n' ) + '\n'
@@ -89,6 +98,8 @@ describe('@vuepress/markdown > plugins > linksPlugin', () => {
89
98
'<a href="https://github.com" target="_self" rel="noopener noreferrer">https-github</a>' ,
90
99
'<a href="http://github.com" target="_self" rel="noopener noreferrer">http-github</a>' ,
91
100
'<a href="//github.com" target="_self" rel="noopener noreferrer">github</a>' ,
101
+ '<a href="https://github.com" target="_self" rel="noopener noreferrer">https://github.com</a>' ,
102
+ '<a href="http://github.com" target="_self" rel="noopener noreferrer">http://github.com</a>' ,
92
103
]
93
104
. map ( ( a ) => `<p>${ a } </p>` )
94
105
. join ( '\n' ) + '\n'
0 commit comments