• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1[article Anchor Test]
2
3[section Anchors]
4
5[#a1] A paragraph containing several anchors. [#a2] We want to make sure
6they appear in the correct place. [#a3]
7
8[heading This heading shouldn't pick up the previous anchor]
9
10[#a4]
11
12[heading This heading should pick up the previous anchor]
13
14[#a5]
15[heading And this one]
16
17[#a6][heading Also this one]
18
19[#a7][h3 Finally this]
20
21[#a8]
22
23[endsect]
24
25[#a9]
26[section Section Anchor]
27[#a10][section Nested Section]
28[endsect]
29[/ This anchor is invalid, I'm not sure what to do with it]
30[#a11]
31[endsect]
32
33[#a12][?__not_defined__ #a13]
34[section Conditional Section Anchor]
35[endsect]
36
37[section Lists]
38
39[#a14]
40* Item 1
41* Item 2
42* Nested List
43  [#a15]
44  * Nested Item 1
45  * Nested Item 2
46  * [#a16] Nested Item 3
47* Item 3
48
49[endsect]
50
51[section Anchors in templates]
52
53[template anchor1[][#t1]]
54[template para[] Text content]
55
56[anchor1]
57
58Some text.
59
60[#t2]
61
62[para]
63
64[endsect]
65
66[section Anchors in syntax highlighted code]
67
68    int ``[#s1]``main() {}
69
70[endsect]
71
72[section Nested anchors]
73
74[table Table with anchors
75    [[Heading]]
76    [[[#table1]Cell 1]]
77    [[[#table2] Cell 2]]
78    [[Cell 3[#table3]]]
79]
80[endsect]
81