Debian Codegraph @

tests/extensions/attr_list.txt

raw
1 This is a sextext header {: #setext}
2 ====================================
3
4 A paragraph with some text.
5 Line two of the paragraph.
6 {: #par1 .myclass }
7
8 This is another {: #sextext2 .someclass}
9 ----------------------------------------
10
11 Test some _inline_{: .inline} text.
12 A [link](http://example.com){: .linkkyclass title="A title."}
13 And a __nested [link][]{: .linky2}__{: .nest}
14
15 [link]: http://example.com "Some title"
16
17 ### This is a hash Header ### {: #hash}
18
19 And now some random attributes.
20 {:foo bar='b az' baz="blah blah" title="I wasn't kidding!" }
21
22 ### No closing hash header {: #hash2}
23
24 Now test overrides
25 {: #overrideme .andme id=overridden class='foo bar' .addme }
26
27 # A code block which contains attr_list syntax
28 # This should be ignored.
29 {: #someid .someclass }
30
31 ### No colon for compatibility with Headerid ext { #hash3 }
32
33 Also a codespan: `{: .someclass}`{: .foo}.
34 {: #the_end}
35
36 ### Bad Syntax { {: #hash5 }
37
38 * Item1
39 {: .item }
40 * Item2
41 {: .item }
42 * Item2-1
43 {: .subitem }
44 * _Item3_{: .emph }
45 {: .item }
46 * _Item3-1_{: .emph }
47 {: .subitem }
48 * Item4
49 * Item4-1
50 * Item5
51
52 # And ordered lists *too*{.inline}
53
54 1. Item1
55 {: .item }
56 2. Item2
57 {: .item }
58 1. Item2-1
59 {: .subitem }
60 3. _Item3_{: .emph }
61 {: .item }
62 1. _Item3-1_{: .emph }
63 {: .subitem }
64 4. Item4
65 1. Item4-1
66 5. Item5
67
68 # Definition *lists* {.block}
69
70 DT1 {.term}
71 DT2 {.term}
72 : Some dd
73 {.def}
74 : *dd*{.inline}
75
76 *DT3*{.inline}
77 : Some dd
78
79 # Bad attributes
80
81 Key without *value*{ foo= }
82
83 Value without *key*{ =bar }
84
85 No *key or value*{ = }
86
87 *Weirdness*{ == }
88
89 *More weirdness*{ === }
90
91 This should not cause a *crash*{ foo=a=b }
92
93 Attr_lists do not contain *newlines*{ foo=bar
94 key=value }