summaryrefslogtreecommitdiffstats
path: root/tests/test_port/fixtures/punycode.md
blob: c726e823bb46634b72b3cfb8580caaad8da1718e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
Should decode punycode:

.
<http://xn--n3h.net/>
.
<p><a href="http://xn--n3h.net/">http://☃.net/</a></p>
.

.
<http://☃.net/>
.
<p><a href="http://xn--n3h.net/">http://☃.net/</a></p>
.

Invalid punycode:

.
<http://xn--xn.com/>
.
<p><a href="http://xn--xn.com/">http://xn--xn.com/</a></p>
.

Invalid punycode (non-ascii):

.
<http://xn--γ.com/>
.
<p><a href="http://xn--xn---emd.com/">http://xn--γ.com/</a></p>
.

Two slashes should start a domain:

.
[](//☃.net/)
.
<p><a href="//xn--n3h.net/"></a></p>
.

Should auto-add protocol to autolinks:

.
test google.com foo
.
<p>test <a href="http://google.com">google.com</a> foo</p>
.

Should support IDN in autolinks:

.
test http://xn--n3h.net/ foo
.
<p>test <a href="http://xn--n3h.net/">http://☃.net/</a> foo</p>
.

.
test http://☃.net/ foo
.
<p>test <a href="http://xn--n3h.net/">http://☃.net/</a> foo</p>
.

.
test //xn--n3h.net/ foo
.
<p>test <a href="//xn--n3h.net/">//☃.net/</a> foo</p>
.

.
test xn--n3h.net foo
.
<p>test <a href="http://xn--n3h.net">☃.net</a> foo</p>
.

.
test xn--n3h@xn--n3h.net foo
.
<p>test <a href="mailto:xn--n3h@xn--n3h.net">xn--n3h@☃.net</a> foo</p>
.