diff options
Diffstat (limited to 'pages')
-rw-r--r-- | pages/test.txt | 162 |
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 @@ | |||
1 | Testing. | 1 | <markdown> |
2 | An h1 header | ||
3 | ============ | ||
4 | |||
5 | Paragraphs are separated by a blank line. | ||
6 | |||
7 | 2nd paragraph. *Italic*, **bold**, and `monospace`. Itemized lists | ||
8 | look like: | ||
9 | |||
10 | * this one | ||
11 | * that one | ||
12 | * the other one | ||
13 | |||
14 | Note that --- not considering the asterisk --- the actual text | ||
15 | content 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 | |||
23 | Use 3 dashes for an em-dash. Use 2 dashes for ranges (ex., "it's all | ||
24 | in chapters 12--14"). Three dots ... will be converted to an ellipsis. | ||
25 | Unicode is supported. ☺ | ||
26 | |||
27 | |||
28 | |||
29 | An h2 header | ||
30 | ------------ | ||
31 | |||
32 | Here's a numbered list: | ||
33 | |||
34 | 1. first item | ||
35 | 2. second item | ||
36 | 3. third item | ||
37 | |||
38 | Note again how the actual text starts at 4 columns in (4 characters | ||
39 | from the left side). Here's a code sample: | ||
40 | |||
41 | # Let me re-iterate ... | ||
42 | for i in 1 .. 10 { do-something(i) } | ||
43 | |||
44 | As you probably guessed, indented 4 spaces. By the way, instead of | ||
45 | indenting the block, you can use delimited blocks, if you like: | ||
46 | |||
47 | ~~~ | ||
48 | define foobar() { | ||
49 | print "Welcome to flavor country!"; | ||
50 | } | ||
51 | ~~~ | ||
52 | |||
53 | (which makes copying & pasting easier). You can optionally mark the | ||
54 | delimited block for Pandoc to syntax highlight it: | ||
55 | |||
56 | ~~~python | ||
57 | import time | ||
58 | # Quick, count to ten! | ||
59 | for 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 | |||
69 | Now 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 | |||
92 | Notice again how text always lines up on 4-space indents (including | ||
93 | that last line which continues item 3 above). | ||
94 | |||
95 | Here's a link to [a website](http://foo.bar), to a [local | ||
96 | doc](local-doc.html), and to a [section heading in the current | ||
97 | doc](#an-h2-header). Here's a footnote [^1]. | ||
98 | |||
99 | [^1]: Some footnote text. | ||
100 | |||
101 | Tables can look like this: | ||
102 | |||
103 | Name Size Material Color | ||
104 | ------------- ----- ------------ ------------ | ||
105 | All Business 9 leather brown | ||
106 | Roundabout 10 hemp canvas natural | ||
107 | Cinderella 11 glass transparent | ||
108 | |||
109 | Table: Shoes sizes, materials, and colors. | ||
110 | |||
111 | (The above is the caption for the table.) Pandoc also supports | ||
112 | multi-line tables: | ||
113 | |||
114 | -------- ----------------------- | ||
115 | Keyword Text | ||
116 | -------- ----------------------- | ||
117 | red Sunsets, apples, and | ||
118 | other red or reddish | ||
119 | things. | ||
120 | |||
121 | green Leaves, grass, frogs | ||
122 | and other things it's | ||
123 | not easy being. | ||
124 | -------- ----------------------- | ||
125 | |||
126 | A horizontal rule follows. | ||
127 | |||
128 | *** | ||
129 | |||
130 | Here's a definition list: | ||
131 | |||
132 | apples | ||
133 | : Good for making applesauce. | ||
134 | |||
135 | oranges | ||
136 | : Citrus! | ||
137 | |||
138 | tomatoes | ||
139 | : There's no "e" in tomatoe. | ||
140 | |||
141 | Again, text is indented 4 spaces. (Put a blank line between each | ||
142 | term and its definition to spread things out more.) | ||
143 | |||
144 | Here's a "line block" (note how whitespace is honored): | ||
145 | |||
146 | | Line one | ||
147 | | Line too | ||
148 | | Line tree | ||
149 | |||
150 | and images can be specified like so: | ||
151 | |||
152 | ![example image](example-image.jpg "An exemplary image") | ||
153 | |||
154 | Inline math equation: $\omega = d\phi / dt$. Display | ||
155 | math should get its own line like so: | ||
156 | |||
157 | $$I = \int \rho R^{2} dV$$ | ||
158 | |||
159 | And note that you can backslash-escape any punctuation characters | ||
160 | which you wish to be displayed literally, ex.: \`foo\`, \*bar\*, etc. | ||
161 | </markdown> | ||