summaryrefslogtreecommitdiffstats
path: root/pages
diff options
context:
space:
mode:
authorCarlos O'Donell <carlos@redhat.com>2020-01-21 10:10:10 -0500
committerCarlos O'Donell <carlos@redhat.com>2020-01-21 10:10:30 -0500
commit5bb79ecadb20e40c09660e4669f7ea60efd12da6 (patch)
tree9f6989549d44fe5816e5f91c5029b05245fb4faa /pages
parentsocial-contract: Convert to Markdown. (diff)
test.txt: Add markdown test.
Diffstat (limited to 'pages')
-rw-r--r--pages/test.txt162
1 files changed, 161 insertions, 1 deletions
diff --git a/pages/test.txt b/pages/test.txt
index f1beb8e..d342ab2 100644
--- a/pages/test.txt
+++ b/pages/test.txt
@@ -1 +1,161 @@
1Testing. 1<markdown>
2An h1 header
3============
4
5Paragraphs are separated by a blank line.
6
72nd paragraph. *Italic*, **bold**, and `monospace`. Itemized lists
8look like:
9
10 * this one
11 * that one
12 * the other one
13
14Note that --- not considering the asterisk --- the actual text
15content starts at 4-columns in.
16
17> Block quotes are
18> written like so.
19>
20> They can span multiple paragraphs,
21> if you like.
22
23Use 3 dashes for an em-dash. Use 2 dashes for ranges (ex., "it's all
24in chapters 12--14"). Three dots ... will be converted to an ellipsis.
25Unicode is supported. ☺
26
27
28
29An h2 header
30------------
31
32Here's a numbered list:
33
34 1. first item
35 2. second item
36 3. third item
37
38Note again how the actual text starts at 4 columns in (4 characters
39from the left side). Here's a code sample:
40
41 # Let me re-iterate ...
42 for i in 1 .. 10 { do-something(i) }
43
44As you probably guessed, indented 4 spaces. By the way, instead of
45indenting the block, you can use delimited blocks, if you like:
46
47~~~
48define foobar() {
49 print "Welcome to flavor country!";
50}
51~~~
52
53(which makes copying & pasting easier). You can optionally mark the
54delimited block for Pandoc to syntax highlight it:
55
56~~~python
57import time
58# Quick, count to ten!
59for i in range(10):
60 # (but not *too* quick)
61 time.sleep(0.5)
62 print(i)
63~~~
64
65
66
67### An h3 header ###
68
69Now a nested list:
70
71 1. First, get these ingredients:
72
73 * carrots
74 * celery
75 * lentils
76
77 2. Boil some water.
78
79 3. Dump everything in the pot and follow
80 this algorithm:
81
82 find wooden spoon
83 uncover pot
84 stir
85 cover pot
86 balance wooden spoon precariously on pot handle
87 wait 10 minutes
88 goto first step (or shut off burner when done)
89
90 Do not bump wooden spoon or it will fall.
91
92Notice again how text always lines up on 4-space indents (including
93that last line which continues item 3 above).
94
95Here's a link to [a website](http://foo.bar), to a [local
96doc](local-doc.html), and to a [section heading in the current
97doc](#an-h2-header). Here's a footnote [^1].
98
99[^1]: Some footnote text.
100
101Tables can look like this:
102
103Name Size Material Color
104------------- ----- ------------ ------------
105All Business 9 leather brown
106Roundabout 10 hemp canvas natural
107Cinderella 11 glass transparent
108
109Table: Shoes sizes, materials, and colors.
110
111(The above is the caption for the table.) Pandoc also supports
112multi-line tables:
113
114-------- -----------------------
115Keyword Text
116-------- -----------------------
117red Sunsets, apples, and
118 other red or reddish
119 things.
120
121green Leaves, grass, frogs
122 and other things it's
123 not easy being.
124-------- -----------------------
125
126A horizontal rule follows.
127
128***
129
130Here's a definition list:
131
132apples
133 : Good for making applesauce.
134
135oranges
136 : Citrus!
137
138tomatoes
139 : There's no "e" in tomatoe.
140
141Again, text is indented 4 spaces. (Put a blank line between each
142term and its definition to spread things out more.)
143
144Here's a "line block" (note how whitespace is honored):
145
146| Line one
147| Line too
148| Line tree
149
150and images can be specified like so:
151
152![example image](example-image.jpg "An exemplary image")
153
154Inline math equation: $\omega = d\phi / dt$. Display
155math should get its own line like so:
156
157$$I = \int \rho R^{2} dV$$
158
159And note that you can backslash-escape any punctuation characters
160which you wish to be displayed literally, ex.: \`foo\`, \*bar\*, etc.
161</markdown>