Debian Codegraph @

src/tests/fixtures/wikilinks_title_after_pipe.md

raw
1 ---
2 title: Wikilinks
3 based_on: https://github.com/jgm/commonmark-hs/blob/master/commonmark-extensions/test/wikilinks_title_after_pipe.md
4 ---
5
6 # Wikilinks, title after pipe
7
8 Wikilinks can have one of the following forms:
9
10 [[https://example.org]]
11 [[https://example.org|title]]
12 [[name of page]]
13 [[name of page|title]]
14
15 With this version of wikilinks, the title comes after the pipe.
16
17 ```````````````````````````````` example
18 [[https://example.org]]
19 .
20 <p><a href="https://example.org" data-wikilink="true">https://example.org</a></p>
21 ````````````````````````````````
22
23 ```````````````````````````````` example
24 [[https://example.org|title]]
25 .
26 <p><a href="https://example.org" data-wikilink="true">title</a></p>
27 ````````````````````````````````
28
29 ```````````````````````````````` example
30 [[Name of page]]
31 .
32 <p><a href="Name%20of%20page" data-wikilink="true">Name of page</a></p>
33 ````````````````````````````````
34
35 ```````````````````````````````` example
36 [[Name of page|Title]]
37 .
38 <p><a href="Name%20of%20page" data-wikilink="true">Title</a></p>
39 ````````````````````````````````
40
41 HTML entities are recognized both in the name of page and in the link title.
42
43 ```````````````````````````````` example
44 [[Gesch&uuml;tztes Leerzeichen|&#xDC;ber &amp;nbsp;]]
45 .
46 <p><a href="Gesch%C3%BCtztes%20Leerzeichen" data-wikilink="true">Über &amp;nbsp;</a></p>
47 ````````````````````````````````
48
49 Escaping characters is supported
50
51 ```````````````````````````````` example
52 [[https://example.org|foo\[\]bar]]
53 .
54 <p><a href="https://example.org" data-wikilink="true">foo[]bar</a></p>
55 ````````````````````````````````
56
57 ```````````````````````````````` example
58 [[Name \[of\] page]]
59 .
60 <p><a href="Name%20%5Bof%5D%20page" data-wikilink="true">Name [of] page</a></p>
61 ````````````````````````````````
62
63 Emphasis or other inline markdown is not supported
64
65 ```````````````````````````````` example
66 [[Name _of_ page]]
67 .
68 <p><a href="Name%20_of_%20page" data-wikilink="true">Name _of_ page</a></p>
69 ````````````````````````````````