|
|
@@ -1,14 +1,13 @@
|
|
1
|
1
|
# Markdown Syntax
|
|
2
|
2
|
|
|
3
|
|
-(todo: include class names for enabling these features)
|
|
4
|
|
-
|
|
5
|
3
|
## Block Formats
|
|
6
|
4
|
|
|
7
|
5
|
Formats that apply to one or more lines.
|
|
8
|
6
|
|
|
9
|
7
|
### Paragraph
|
|
10
|
8
|
|
|
11
|
|
-Any contiguous set of lines not formatted like one of the other formats below is treated as a paragraph. Paragraphs are separated by double blank lines.
|
|
|
9
|
+Any contiguous set of lines not formatted like one of the other formats below is
|
|
|
10
|
+treated as a paragraph. Paragraphs are separated by double blank lines.
|
|
12
|
11
|
|
|
13
|
12
|
```markdown
|
|
14
|
13
|
Lorem ipsum dolor
|
|
|
@@ -17,6 +16,13 @@ sit amet.
|
|
17
|
16
|
New paragraph begins.
|
|
18
|
17
|
```
|
|
19
|
18
|
|
|
|
19
|
+> <p>Lorem ipsum dolor sit amet.</p>
|
|
|
20
|
+>
|
|
|
21
|
+> <p>New paragraph begins.</p>
|
|
|
22
|
+
|
|
|
23
|
+Class:
|
|
|
24
|
+* `MDParagraphReader`
|
|
|
25
|
+
|
|
20
|
26
|
### Headers
|
|
21
|
27
|
|
|
22
|
28
|
Headers are marked with one or more leading hashes.
|
|
|
@@ -31,6 +37,14 @@ Headers are marked with one or more leading hashes.
|
|
31
|
37
|
## Optional Matched Hashes At The End ##
|
|
32
|
38
|
```
|
|
33
|
39
|
|
|
|
40
|
+> <h1>Header 1 has one hash</h1>
|
|
|
41
|
+>
|
|
|
42
|
+> <h2>Header 2 has two hashes</h2>
|
|
|
43
|
+>
|
|
|
44
|
+> <h6>Up to header 6</h6>
|
|
|
45
|
+>
|
|
|
46
|
+> <h2>Optional Matched Hashes At The End</h2>
|
|
|
47
|
+
|
|
34
|
48
|
Alternately, H1 and H2 can be marked with underlines.
|
|
35
|
49
|
|
|
36
|
50
|
```markdown
|
|
|
@@ -41,6 +55,14 @@ Header 2 with hyphens. Number of underline chars doesn't matter
|
|
41
|
55
|
---
|
|
42
|
56
|
```
|
|
43
|
57
|
|
|
|
58
|
+> <h1>Header 1 underlined with equals</h1>
|
|
|
59
|
+>
|
|
|
60
|
+> <h2>Header 2 with hyphens. Number of underline chars doesn't matter</h2>
|
|
|
61
|
+
|
|
|
62
|
+Classes:
|
|
|
63
|
+* `MDUnderlinedHeadingReader`
|
|
|
64
|
+* `MDHashHeadingReader`
|
|
|
65
|
+
|
|
44
|
66
|
### Lists
|
|
45
|
67
|
|
|
46
|
68
|
Unordered lists are bulleted with an asterisk, plus, or hyphen and space.
|
|
|
@@ -51,6 +73,12 @@ Unordered lists are bulleted with an asterisk, plus, or hyphen and space.
|
|
51
|
73
|
- Work as bullets
|
|
52
|
74
|
```
|
|
53
|
75
|
|
|
|
76
|
+> <ul>
|
|
|
77
|
+> <li>Item</li>
|
|
|
78
|
+> <li>Any of these</li>
|
|
|
79
|
+> <li>Work as bullets</li>
|
|
|
80
|
+> </ul>
|
|
|
81
|
+
|
|
54
|
82
|
Lists can be nested with one or more spaces below an item.
|
|
55
|
83
|
|
|
56
|
84
|
```markdown
|
|
|
@@ -60,6 +88,14 @@ Lists can be nested with one or more spaces below an item.
|
|
60
|
88
|
* Item
|
|
61
|
89
|
```
|
|
62
|
90
|
|
|
|
91
|
+> <ul>
|
|
|
92
|
+> <li>Item<ul>
|
|
|
93
|
+> <li>Sublist</li>
|
|
|
94
|
+> <li>Sublist</li>
|
|
|
95
|
+> </ul></li>
|
|
|
96
|
+> <li>Item</li>
|
|
|
97
|
+> </ul>
|
|
|
98
|
+
|
|
63
|
99
|
Ordered lists start with a number, period, and space.
|
|
64
|
100
|
|
|
65
|
101
|
```markdown
|
|
|
@@ -68,6 +104,12 @@ Ordered lists start with a number, period, and space.
|
|
68
|
104
|
3. Item
|
|
69
|
105
|
```
|
|
70
|
106
|
|
|
|
107
|
+> <ol>
|
|
|
108
|
+> <li>Item</li>
|
|
|
109
|
+> <li>Item</li>
|
|
|
110
|
+> <li>Item</li>
|
|
|
111
|
+> </ol>
|
|
|
112
|
+
|
|
71
|
113
|
Again, they can be nested.
|
|
72
|
114
|
|
|
73
|
115
|
```markdown
|
|
|
@@ -77,7 +119,16 @@ Again, they can be nested.
|
|
77
|
119
|
2. Item
|
|
78
|
120
|
```
|
|
79
|
121
|
|
|
80
|
|
-The first number dictates where the numbering begins. The numbers on the other items are ignored and incremented by one.
|
|
|
122
|
+> <ol>
|
|
|
123
|
+> <li>Item<ol>
|
|
|
124
|
+> <li>Subitem</li>
|
|
|
125
|
+> <li>Subitem</li>
|
|
|
126
|
+> </ol></li>
|
|
|
127
|
+> <li>Item</li>
|
|
|
128
|
+> </ol>
|
|
|
129
|
+
|
|
|
130
|
+The first number dictates where the numbering begins. The numbers on the other
|
|
|
131
|
+items are ignored and incremented by one.
|
|
81
|
132
|
|
|
82
|
133
|
```markdown
|
|
83
|
134
|
5. Rendered as a 5
|
|
|
@@ -85,6 +136,19 @@ The first number dictates where the numbering begins. The numbers on the other i
|
|
85
|
136
|
1. Rendered as a 7
|
|
86
|
137
|
```
|
|
87
|
138
|
|
|
|
139
|
+> <ol start="5">
|
|
|
140
|
+> <li>Rendered as a 5</li>
|
|
|
141
|
+> <li>Rendered as a 6</li>
|
|
|
142
|
+> <li>Rendered as a 7</li>
|
|
|
143
|
+> </ol>
|
|
|
144
|
+
|
|
|
145
|
+Numbering every item with `1.` can
|
|
|
146
|
+save you the hassle of renumbering items when reordering them.
|
|
|
147
|
+
|
|
|
148
|
+Classes:
|
|
|
149
|
+* `MDUnorderedListReader`
|
|
|
150
|
+* `MDOrderedListReader`
|
|
|
151
|
+
|
|
88
|
152
|
### Blockquote
|
|
89
|
153
|
|
|
90
|
154
|
Blockquotes enclose lengthy quoted content in an indented block.
|
|
|
@@ -96,6 +160,13 @@ Lorem Ipsum said:
|
|
96
|
160
|
> adipiscing.
|
|
97
|
161
|
```
|
|
98
|
162
|
|
|
|
163
|
+> Lorem Ipsum said:
|
|
|
164
|
+>
|
|
|
165
|
+> <blockquote>Dolor sit amet adipiscing.</blockquote>
|
|
|
166
|
+
|
|
|
167
|
+Class:
|
|
|
168
|
+* `MDBlockQuoteReader`
|
|
|
169
|
+
|
|
99
|
170
|
### Code Blocks
|
|
100
|
171
|
|
|
101
|
172
|
Blocks of preformatted code can be enclosed in triple backticks.
|
|
|
@@ -108,7 +179,14 @@ function foo() {
|
|
108
|
179
|
```
|
|
109
|
180
|
```
|
|
110
|
181
|
|
|
111
|
|
-Alternately, lines indented by at least four spaces or a tab character will be interpreted as code blocks.
|
|
|
182
|
+> <pre><code>
|
|
|
183
|
+> function foo() {
|
|
|
184
|
+> return 'bar';
|
|
|
185
|
+> }
|
|
|
186
|
+> </code></pre>
|
|
|
187
|
+
|
|
|
188
|
+Alternately, lines indented by at least four spaces or a tab character will be
|
|
|
189
|
+interpreted as code blocks.
|
|
112
|
190
|
|
|
113
|
191
|
```markdown
|
|
114
|
192
|
function foo() {
|
|
|
@@ -116,9 +194,20 @@ Alternately, lines indented by at least four spaces or a tab character will be i
|
|
116
|
194
|
}
|
|
117
|
195
|
```
|
|
118
|
196
|
|
|
|
197
|
+> <pre><code>
|
|
|
198
|
+> function foo() {
|
|
|
199
|
+> return 'bar';
|
|
|
200
|
+> }
|
|
|
201
|
+> </code></pre>
|
|
|
202
|
+
|
|
|
203
|
+Classes:
|
|
|
204
|
+* `MDFencedCodeBlockReader`
|
|
|
205
|
+* `MDIndentedCodeBlockReader`
|
|
|
206
|
+
|
|
119
|
207
|
### Horizontal Rule
|
|
120
|
208
|
|
|
121
|
|
-Horizontal divider lines are written as 3 or more hyphens or asterisks on a line by themselves, with or without interstitial whitespace.
|
|
|
209
|
+Horizontal divider lines are written as 3 or more hyphens or asterisks on a line
|
|
|
210
|
+by themselves, with or without interstitial whitespace.
|
|
122
|
211
|
|
|
123
|
212
|
```markdown
|
|
124
|
213
|
---
|
|
|
@@ -130,6 +219,17 @@ Horizontal divider lines are written as 3 or more hyphens or asterisks on a line
|
|
130
|
219
|
* * * * * * *
|
|
131
|
220
|
```
|
|
132
|
221
|
|
|
|
222
|
+> <hr>
|
|
|
223
|
+>
|
|
|
224
|
+> <hr>
|
|
|
225
|
+>
|
|
|
226
|
+> <hr>
|
|
|
227
|
+>
|
|
|
228
|
+> <hr>
|
|
|
229
|
+
|
|
|
230
|
+Class:
|
|
|
231
|
+* `MDHorizontalRuleReader`
|
|
|
232
|
+
|
|
133
|
233
|
### Tables
|
|
134
|
234
|
|
|
135
|
235
|
Tables consist of one header row and any number of body rows
|
|
|
@@ -141,9 +241,20 @@ Cell | 123 | xyz
|
|
141
|
241
|
Next row | 543 | abc
|
|
142
|
242
|
```
|
|
143
|
243
|
|
|
|
244
|
+> <table>
|
|
|
245
|
+> <thead>
|
|
|
246
|
+> <tr><th>Header</th><th>Row</th><th>Here</th></tr>
|
|
|
247
|
+> </thead>
|
|
|
248
|
+> <tbody>
|
|
|
249
|
+> <tr><td>Cell</td><td>123</td><td>xyz</td></tr>
|
|
|
250
|
+> <tr><td>Next row</td><td>543</td><td>abc</td></tr>
|
|
|
251
|
+> </tbody>
|
|
|
252
|
+> </table>
|
|
|
253
|
+
|
|
144
|
254
|
The pipe characters do not have to line up.
|
|
145
|
255
|
|
|
146
|
|
-Rows can optionally have leading and/or trailing pipes. This is required for a single column table.
|
|
|
256
|
+Rows can optionally have leading and/or trailing pipes. This is required for a
|
|
|
257
|
+single column table.
|
|
147
|
258
|
|
|
148
|
259
|
```markdown
|
|
149
|
260
|
| One column |
|
|
|
@@ -152,6 +263,16 @@ Rows can optionally have leading and/or trailing pipes. This is required for a s
|
|
152
|
263
|
| 234 |
|
|
153
|
264
|
```
|
|
154
|
265
|
|
|
|
266
|
+> <table>
|
|
|
267
|
+> <thead>
|
|
|
268
|
+> <tr><th>One column</th></tr>
|
|
|
269
|
+> </thead>
|
|
|
270
|
+> <tbody>
|
|
|
271
|
+> <tr><td>123</td></tr>
|
|
|
272
|
+> <tr><td>234</td></tr>
|
|
|
273
|
+> </tbody>
|
|
|
274
|
+> </table>
|
|
|
275
|
+
|
|
155
|
276
|
Columns can be right, center, or left aligned with colons in the divider line.
|
|
156
|
277
|
|
|
157
|
278
|
```markdown
|
|
|
@@ -160,7 +281,21 @@ Columns can be right, center, or left aligned with colons in the divider line.
|
|
160
|
281
|
| 1 | 2 | 3 |
|
|
161
|
282
|
```
|
|
162
|
283
|
|
|
163
|
|
-Tables can optionally support simple [spreadsheet expressions](spreadsheet.md) by adding the spreadsheet block reader when configuring a parser.
|
|
|
284
|
+> <table>
|
|
|
285
|
+> <thead>
|
|
|
286
|
+> <tr><th style="text-align: left;">Left</th><th style="text-align: center;">Center</th><th style="text-align: right;">Right</th></tr>
|
|
|
287
|
+> </thead>
|
|
|
288
|
+> <tbody>
|
|
|
289
|
+> <tr><td style="text-align: left;">1</td><td style="text-align: center;">2</td><td style="text-align: right;">3</td></tr>
|
|
|
290
|
+> </tbody>
|
|
|
291
|
+> </table>
|
|
|
292
|
+
|
|
|
293
|
+Tables can optionally support simple [spreadsheet expressions](spreadsheet.md)
|
|
|
294
|
+by adding the spreadsheet block reader when configuring a parser.
|
|
|
295
|
+
|
|
|
296
|
+Classes:
|
|
|
297
|
+* `MDTableReader`
|
|
|
298
|
+* `MDSpreadsheetReader`
|
|
164
|
299
|
|
|
165
|
300
|
### Definition List
|
|
166
|
301
|
|
|
|
@@ -174,20 +309,41 @@ another
|
|
174
|
309
|
: alternate definition of another
|
|
175
|
310
|
```
|
|
176
|
311
|
|
|
|
312
|
+> <dl>
|
|
|
313
|
+> <dt>term</dt>
|
|
|
314
|
+> <dd>definition of term</dd>
|
|
|
315
|
+> <dt>another</dt>
|
|
|
316
|
+> <dd>definition of another</dd>
|
|
|
317
|
+> <dd>alternate definition of another</dd>
|
|
|
318
|
+> </dl>
|
|
|
319
|
+
|
|
|
320
|
+Class:
|
|
|
321
|
+* `MDDefinitionListReader`
|
|
|
322
|
+
|
|
177
|
323
|
### Abbreviation Definition
|
|
178
|
324
|
|
|
179
|
|
-Abbreviations can be defined anywhere in the document. Anywhere that abbreviation appears in the document will have a mouseover title showing the expanded definition. The definition is plaintext only (no markdown).
|
|
|
325
|
+Abbreviations can be defined anywhere in the document. Anywhere that abbreviation
|
|
|
326
|
+appears in the document will have a mouseover title showing the expanded
|
|
|
327
|
+definition. The definition is plaintext only (no markdown).
|
|
180
|
328
|
|
|
181
|
329
|
```markdown
|
|
|
330
|
+Always remember, ABC.
|
|
|
331
|
+
|
|
182
|
332
|
*[ABC]: Always Be Closing
|
|
183
|
333
|
```
|
|
184
|
334
|
|
|
|
335
|
+> Always remember, <abbr title="Always Be Closing">ABC</abbr>.
|
|
|
336
|
+
|
|
|
337
|
+Class:
|
|
|
338
|
+* `MDAbbreviationReader`
|
|
|
339
|
+
|
|
185
|
340
|
### CSS Modifiers
|
|
186
|
341
|
|
|
187
|
|
-Many block structures can be modified with CSS classes, IDs, or other simple HTML attributes inside curly braces.
|
|
|
342
|
+Many block structures can be modified with CSS classes, IDs, or other simple
|
|
|
343
|
+HTML attributes inside curly braces.
|
|
188
|
344
|
|
|
189
|
345
|
```markdown
|
|
190
|
|
-# Header {.mycssclass}
|
|
|
346
|
+## Header with a CSS class {.mycssclass}
|
|
191
|
347
|
|
|
192
|
348
|
--- {#mydividerid}
|
|
193
|
349
|
|
|
|
@@ -195,9 +351,23 @@ Many block structures can be modified with CSS classes, IDs, or other simple HTM
|
|
195
|
351
|
|---|
|
|
196
|
352
|
|123|
|
|
197
|
353
|
|
|
198
|
|
-# Multiple Modifiers {.linkclass #linkid lang=en}
|
|
|
354
|
+## Header with multiple modifiers {.linkclass #linkid lang=en}
|
|
199
|
355
|
```
|
|
200
|
356
|
|
|
|
357
|
+> <h2 class="mycssclass">Header with a CSS class</h2>
|
|
|
358
|
+>
|
|
|
359
|
+> <hr id="mydividerid">
|
|
|
360
|
+>
|
|
|
361
|
+> <table style="color: green;">
|
|
|
362
|
+> <thead><tr><th>Table</th></tr></thead>
|
|
|
363
|
+> <tbody><tr><td>123</td></tr></tbody>
|
|
|
364
|
+> </table>
|
|
|
365
|
+>
|
|
|
366
|
+> <h2 class="linkclass" id="linkid" lang="en">Header with multiple modifiers</h2>
|
|
|
367
|
+
|
|
|
368
|
+Class:
|
|
|
369
|
+* `MDModifierReader`
|
|
|
370
|
+
|
|
201
|
371
|
## Inline Formats
|
|
202
|
372
|
|
|
203
|
373
|
Formats that apply within a block to style runs of words or inject other content within text.
|
|
|
@@ -207,9 +377,14 @@ Formats that apply within a block to style runs of words or inject other content
|
|
207
|
377
|
Text can be marked as bold by enclosing it in double asterisks.
|
|
208
|
378
|
|
|
209
|
379
|
```markdown
|
|
210
|
|
-Some **bold** text. Can also use __underscores__.
|
|
|
380
|
+Some **bold** text. Can also use __underscores__ (unless underlining is enabled).
|
|
211
|
381
|
```
|
|
212
|
382
|
|
|
|
383
|
+> Some <strong>bold</strong> text. Can also use <strong>underscores</strong> (unless underlining is enabled).
|
|
|
384
|
+
|
|
|
385
|
+Class:
|
|
|
386
|
+* `MDStrongReader`
|
|
|
387
|
+
|
|
213
|
388
|
### Emphasis
|
|
214
|
389
|
|
|
215
|
390
|
Text can be marked as italic by enclosing it in single underscores or single asterisks.
|
|
|
@@ -218,14 +393,52 @@ Text can be marked as italic by enclosing it in single underscores or single ast
|
|
218
|
393
|
Some _italic_ text. Can also use *asterisks*.
|
|
219
|
394
|
```
|
|
220
|
395
|
|
|
|
396
|
+> Some <em>italic</em> text. Can also use <em>asterisks</em>.
|
|
|
397
|
+
|
|
|
398
|
+Class:
|
|
|
399
|
+* `MDEmphasisReader`
|
|
|
400
|
+
|
|
221
|
401
|
### Strikethrough
|
|
222
|
402
|
|
|
223
|
|
-Text can be stricken out using tildes, singly or in pairs.
|
|
|
403
|
+Text can be stricken out using tildes, singly or in pairs. If subscript is
|
|
|
404
|
+enabled then only double tildes can be used.
|
|
224
|
405
|
|
|
225
|
406
|
```markdown
|
|
226
|
407
|
Not ~~this text~~. Not ~this text~ either.
|
|
227
|
408
|
```
|
|
228
|
409
|
|
|
|
410
|
+> Not <s>this text</s>. Not <s>this text</s> either.
|
|
|
411
|
+
|
|
|
412
|
+Class:
|
|
|
413
|
+* `MDStrikethroughReader`
|
|
|
414
|
+
|
|
|
415
|
+### Underline
|
|
|
416
|
+
|
|
|
417
|
+Underline is denoted with double underscores. If this reader is in use,
|
|
|
418
|
+"strong" styling can only be done with double asterisks.
|
|
|
419
|
+
|
|
|
420
|
+```markdown
|
|
|
421
|
+Some __underlined__ text.
|
|
|
422
|
+```
|
|
|
423
|
+
|
|
|
424
|
+> Some <u>underlined</u> text.
|
|
|
425
|
+
|
|
|
426
|
+Class:
|
|
|
427
|
+* `MDUnderlineReader`
|
|
|
428
|
+
|
|
|
429
|
+### Highlighting
|
|
|
430
|
+
|
|
|
431
|
+Highlighting is done with pairs of equals around text.
|
|
|
432
|
+
|
|
|
433
|
+```markdown
|
|
|
434
|
+Some ==highlighted== text.
|
|
|
435
|
+```
|
|
|
436
|
+
|
|
|
437
|
+> Some <mark>highlighted</mark> text.
|
|
|
438
|
+
|
|
|
439
|
+Class:
|
|
|
440
|
+* `MDHighlightReader`
|
|
|
441
|
+
|
|
229
|
442
|
### Code
|
|
230
|
443
|
|
|
231
|
444
|
Words can be rendered in monospace font using single backticks.
|
|
|
@@ -234,6 +447,37 @@ Words can be rendered in monospace font using single backticks.
|
|
234
|
447
|
The name of the function is `foo()`.
|
|
235
|
448
|
```
|
|
236
|
449
|
|
|
|
450
|
+> The name of the function is <code>foo()</code>.
|
|
|
451
|
+
|
|
|
452
|
+Class:
|
|
|
453
|
+* `MDCodeSpanReader`
|
|
|
454
|
+
|
|
|
455
|
+### Subscript
|
|
|
456
|
+
|
|
|
457
|
+Subscript is denoted with single tildes around the text.
|
|
|
458
|
+
|
|
|
459
|
+```markdown
|
|
|
460
|
+The formula for water is H~2~O.
|
|
|
461
|
+```
|
|
|
462
|
+
|
|
|
463
|
+> The formula for water is H<sup>2</sup>O.
|
|
|
464
|
+
|
|
|
465
|
+Class:
|
|
|
466
|
+* `MDSubscriptReader`
|
|
|
467
|
+
|
|
|
468
|
+### Superscript
|
|
|
469
|
+
|
|
|
470
|
+Superscript is represented with caret characters around the text.
|
|
|
471
|
+
|
|
|
472
|
+```markdown
|
|
|
473
|
+Einstein's equation E=mc^2^.
|
|
|
474
|
+```
|
|
|
475
|
+
|
|
|
476
|
+> Einstein's equation is E=mc<sup>2</sup>.
|
|
|
477
|
+
|
|
|
478
|
+Class:
|
|
|
479
|
+* `MDSuperscriptReader`
|
|
|
480
|
+
|
|
237
|
481
|
### Link
|
|
238
|
482
|
|
|
239
|
483
|
Linking to a document is done with marked text and a URL.
|
|
|
@@ -242,12 +486,16 @@ Linking to a document is done with marked text and a URL.
|
|
242
|
486
|
Click [here](page.html).
|
|
243
|
487
|
```
|
|
244
|
488
|
|
|
|
489
|
+> Click <a href="page.html">here</a>.
|
|
|
490
|
+
|
|
245
|
491
|
An optional mouseover title can be added to the link after the URL.
|
|
246
|
492
|
|
|
247
|
493
|
```markdown
|
|
248
|
494
|
Click [here](page.html "Goes to a neat page").
|
|
249
|
495
|
```
|
|
250
|
496
|
|
|
|
497
|
+> Click <a href="page.html" title="Goes to a neat page">here</a>.
|
|
|
498
|
+
|
|
251
|
499
|
Repetitive or lengthy URLs can be referenced out and defined elsewhere in the document.
|
|
252
|
500
|
|
|
253
|
501
|
```markdown
|
|
|
@@ -256,12 +504,22 @@ Click [here][foo] or [here][foo] or [even here][foo] to go to the same place.
|
|
256
|
504
|
[foo]: page.html "Optional title"
|
|
257
|
505
|
```
|
|
258
|
506
|
|
|
|
507
|
+> Click <a href="page.html" title="Optional title">here</a> or
|
|
|
508
|
+> <a href="page.html" title="Optional title">here</a> or
|
|
|
509
|
+> <a href="page.html" title="Optional title">even here</a> to go to the same place.
|
|
|
510
|
+
|
|
259
|
511
|
Lastly, to make a link with the URL as the link text, you can use angle brackets.
|
|
260
|
512
|
|
|
261
|
513
|
```markdown
|
|
262
|
514
|
Go visit <page.html>.
|
|
263
|
515
|
```
|
|
264
|
516
|
|
|
|
517
|
+> Go visit <a href="page.html">page.html</a>.
|
|
|
518
|
+
|
|
|
519
|
+Classes:
|
|
|
520
|
+* `MDLinkReader`
|
|
|
521
|
+* `MDReferencedLinkReader`
|
|
|
522
|
+
|
|
265
|
523
|
### Image
|
|
266
|
524
|
|
|
267
|
525
|
An image is similar to link syntax with an exclamation in front. Instead of clickable link text, the text is alt text for the image.
|
|
|
@@ -270,12 +528,16 @@ An image is similar to link syntax with an exclamation in front. Instead of clic
|
|
270
|
528
|

|
|
271
|
529
|
```
|
|
272
|
530
|
|
|
|
531
|
+> <img src="https://picsum.photos/100/75" alt="a test image">
|
|
|
532
|
+
|
|
273
|
533
|
Images also support title attributes.
|
|
274
|
534
|
|
|
275
|
535
|
```markdown
|
|
276
|
536
|

|
|
277
|
537
|
```
|
|
278
|
538
|
|
|
|
539
|
+> <img src="https://picsum.photos/100/75" alt="a test image" title="title text">
|
|
|
540
|
+
|
|
279
|
541
|
Images also support referenced URLs.
|
|
280
|
542
|
|
|
281
|
543
|
```markdown
|
|
|
@@ -284,12 +546,20 @@ Images also support referenced URLs.
|
|
284
|
546
|
[foo]: https://picsum.photos/100/75
|
|
285
|
547
|
```
|
|
286
|
548
|
|
|
|
549
|
+> <img src="https://picsum.photos/100/75" alt="alt text">
|
|
|
550
|
+
|
|
287
|
551
|
Images can be made clickable by enclosing them in a link where the link text goes.
|
|
288
|
552
|
|
|
289
|
553
|
```markdown
|
|
290
|
|
-[](page.html)
|
|
|
554
|
+[](page.html)
|
|
291
|
555
|
```
|
|
292
|
556
|
|
|
|
557
|
+> <a href="page.html"><img src="https://picsum.photos/100/75" alt="alt text"></a>
|
|
|
558
|
+
|
|
|
559
|
+Classes:
|
|
|
560
|
+* `MDImageReader`
|
|
|
561
|
+* `MDReferencedImageReader`
|
|
|
562
|
+
|
|
293
|
563
|
### Footnote
|
|
294
|
564
|
|
|
295
|
565
|
Footnotes can be inserted into text. The text of the footnotes is added to the bottom of the document, regardless of where they're defined.
|
|
|
@@ -301,6 +571,20 @@ Lorem ipsum[^1] dolor sit[^2] amet.
|
|
301
|
571
|
[^2]: See _Interesting Book_, pg 213
|
|
302
|
572
|
```
|
|
303
|
573
|
|
|
|
574
|
+> <p>Lorem ipsum<sup><a href="#footnote1" id="footnote_ref1">1</a></sup> dolor sit<sup><a href="#footnote2" id="footnote_ref2">2</a></sup> amet.</p>
|
|
|
575
|
+>
|
|
|
576
|
+> <hr>
|
|
|
577
|
+> <ol>
|
|
|
578
|
+> <li>Further information here <a href="#footnote_ref1">↩︎</a></li>
|
|
|
579
|
+> <li>See <em>Interesting Book</em>, pg 213 <a href="#footnote_ref2">↩︎</a></li>
|
|
|
580
|
+> </ol>
|
|
|
581
|
+
|
|
|
582
|
+Class:
|
|
|
583
|
+* `MDFootnoteReader`
|
|
|
584
|
+
|
|
304
|
585
|
### HTML Tags
|
|
305
|
586
|
|
|
306
|
587
|
Currently all HTML tags and attributes are permitted, when markdown syntax doesn't do what you want.
|
|
|
588
|
+
|
|
|
589
|
+Class:
|
|
|
590
|
+* `MDHTMLTagReader`
|