blob: 54ebcb6284a3b0166bf2692c0b5bdb91d2a3f4c9 (
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
|
This is a sextext header {: #setext}
====================================
A paragraph with some text.
Line two of the paragraph.
{: #par1 .myclass }
This is another {: #sextext2 .someclass}
----------------------------------------
Test some _inline_{: .inline} text.
A [link](http://example.com){: .linkkyclass title="A title."}
And a __nested [link][]{: .linky2}__{: .nest}
[link]: http://example.com "Some title"
### This is a hash Header ### {: #hash}
And now some random attributes.
{:foo bar='b az' baz="blah blah" title="I wasn't kidding!" }
### No closing hash header {: #hash2}
Now test overrides
{: #overrideme .andme id=overridden class='foo bar' .addme }
# A code block which contains attr_list syntax
# This should be ignored.
{: #someid .someclass }
### No colon for compatability with Headerid ext { #hash3 }
Also a codespan: `{: .someclass}`{: .foo}.
{: #the_end}
### Bad Syntax { {: #hash5 }
* Item1
{: .item }
* Item2
{: .item }
* Item2-1
{: .subitem }
* _Item3_{: .emph }
{: .item }
* _Item3-1_{: .emph }
{: .subitem }
* Item4
* Item4-1
* Item5
# And ordered lists *too*{.inline}
1. Item1
{: .item }
2. Item2
{: .item }
1. Item2-1
{: .subitem }
3. _Item3_{: .emph }
{: .item }
1. _Item3-1_{: .emph }
{: .subitem }
4. Item4
1. Item4-1
5. Item5
# Definition *lists* {.block}
DT1 {.term}
DT2 {.term}
: Some dd
{.def}
: *dd*{.inline}
*DT3*{.inline}
: Some dd
# Bad attributes
Key without *value*{ foo= }
Value without *key*{ =bar }
No *key or value*{ = }
*Weirdness*{ == }
*More weirdness*{ === }
Attr_lists do not contain *newlines*{ foo=bar
key=value }
Extra *equals signs*{ foo=bar=baz }
|