testdoc - smu - smu - simple markup (Markdown) processor (fork, fixes + features)
(HTM) git clone git://git.codemadness.org/smu
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
testdoc (3263B)
---
1 smu test
2 ========
3
4 simple tests
5 ------------
6
7 first paragraph.
8 testing surround: _emph_ then **strong** and `code`.
9
10 `\`escaped backticks\``.
11
12 `x = *y * 6;`
13
14 horizontal rule:
15
16 - - -
17
18 ---
19
20
21 blocks and entities
22 -------------------
23
24 preformatted block:
25 .'''' .'.'. | |
26 '''. | ' | | |
27 '''' ' ' ""
28
29 quoted text:
30 > When in doubt,
31 > use brute force.
32
33 list:
34 * Make each program do one thing well.
35 * Expect the output of every program to become the input to another,
36 as yet unknown, program.
37 * Design and build software, even operating systems, to be tried early,
38 ideally within weeks.
39 * Use tools in preference to unskilled help to lighten a programming task.
40
41 list in list:
42 * a
43 * b
44 1. c
45 2. d
46 * e
47 * f
48
49 entity: &, <, >
50
51 code:
52 int powerof2(unsigned int n) {
53 return !((n - 1) & n) && n > 0;
54 }
55
56 links
57 -----
58
59 link: [suckless](http://suckless.org/)
60
61 link with title: [suckless](http://suckless.org/ "software that sucks less")
62
63 link with title (single quote): [suckless](http://suckless.org/ 'software that sucks less')
64
65 link with trailing spaces: [suckless](http://suckless.org/ )
66
67 link with leading spaces: [suckless]( http://suckless.org/ )
68
69 link with (): (see [RFC8259 - 8.1. Character Encoding](https://tools.ietf.org/html/rfc8259#section-8.1)).
70
71 link with entities: [link](https://codemadness.org/?bla=2&bla2="3")
72
73 link with empty title: [link](http://a "")
74
75 link with spaces in URL: [link](http://a/b c)
76
77 link with image dimensions (should be ignored): [link](http://a/b =2x2)
78
79 images
80 ------
81
82 image: 
83
84 image with alt text: 
85
86 image with title: 
87
88 image with title (single quote): 
89
90 image with unclosed title (single quote): 
91
92 image with no title and dimensions: 
93
94 image with title and dimensions: 
95
96 image with title and dimensions different order: 
97
98 image with title and dimensions (no width): 
99
100 image with title and dimensions (no height): 
101
102 image with title and dimensions with spaces: 
105
106 image with empty title: 
107
108 linked thumbnail image: [](img.png)
109
110 inline html
111 -----------
112
113 <center>
114 ABC
115 </center>
116
117
118 titles
119 ------
120
121 h1 no need to match exactly
122 ===
123
124 h2 no need to match exactly
125 ---
126
127 h1 no need to match exactly
128 =
129
130 h2 no need to match exactly
131 -
132
133 this one is not a title
134 -
135
136 ## title
137 - a
138
139 ## title
140 -- a
141
142 ## title
143 --
144
145 a
146 -
147
148 aa
149 --
150
151 abc
152 ---
153
154 abc
155 ----------