tinki 0.1.0

Markdown based personal wiki
Documentation
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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
                    **Markdeep Feature Demo**
                           Morgan McGuire

This demonstration documents the features of
[Markdeep](http://casual-effects.com/markdeep) and acts as a test for
it.  Markdeep is a text formatting syntax that extends Markdown, and a
Javascript program for making it work in browsers. The two most
powerful features are its ability to run in any **web browser** on the
client side and the inclusion of **diagrams**.

[Click here](https://casual-effects.com/markdeep/features.md.html?noformat)
to see this document without automatic formatting.

Markdeep is free and easy to use. It doesn't need a plugin, or
Internet connection. There's nothing to install. Just start
writing in Vi, Nodepad, Zed, Emacs, Visual Studio, Atom, or another
editor! You don't have to export, compile, or otherwise process
your document.

If you want to support development of Markdeep, just buy my
[Graphics Codex](http://graphicscodex.com) book for $10 on Amazon. Revenue from that funds my
open source projects.

Basic Formatting
 =======================================================================================
Text formatting: 

    Source                               |     Result
-----------------------------------------|------------------------------
`**bold**`                               | **bold**
`__bold__`                               | __bold__
`*italic*`                               | *italic*
`_italic_`                               | _italic_
`~~strikethrough~~`                      | ~~strikethrough~~
<code>`inline code`</code>               | `inline code`
`5 kg/m^3`                               | 5 kg/m^3

You can add CSS to change the styles. See the Custom Formatting section
for some examples.

Formatted text may **cross
lines** and be as small as **a** single character. It can _also
  be indented and
  split across lines_ simultaneously.

Markdeep intelligently does not apply bold or italic formatting to
math expressions such as x = 3 * y - 2 * z or WORDS_WITH_INTERNAL_UNDERSCORES.
It also protects HTML `<tags>` in code blocks from disappearing.

If you _want_ italics or bold inside of a word, for example in: SCUBA = <b>S</b>elf <b>C</b>ontained
<b>U</b>nderwater <b>B</b>reathing <b>A</b>pparatus, then just use HTML `<b>` and `<i>`
tags---a markdown syntax won't be any more readable in that case.

Exponents only work for positive and negative integers. For arbitrary exponents,
use LaTeX notation: `$x^y$` ==> $x^y$, or HTML tags: `x<sup>y</sup>` ==> x<sup>y</sup>.

Links
---------------------------------------------------------------------------------------
There are many forms of implicit and explicit links:


         Source                            |   Result
-------------------------------------------|---------------------------------------------
`[hyperlink](http://casual-effects.com)`   | [hyperlink](http://casual-effects.com)
`[hyperlink]("http://casual-effects.com")` | [hyperlink]"http://casual-effects.com"
`<http://casual-effects.com>`              | <http://casual-effects.com> 
`http://casual-effects.com`                | http://casual-effects.com
`morgan@casual-effects.com`                | morgan@casual-effects.com
`test@foo.co.uk`                           | test@foo.co.uk
`<test@foo.co.uk>`                         | <test@foo.co.uk>
`Lists section`                            | Lists section
`Tiny Grids subsection`                    | Tiny Grids subsection
`Section [Lists]`                          | Section [Lists]
`sec. [lists]`                             | sec. [lists]
`subsection [lists]`                       | subsection [lists]
`table [states]`                           | table [states]
`tbl. [states]`                            | tbl. [states]
`Table [states]`                           | Table [states]
`figure [robot]`                           | figure [robot]
`fig. [robot]`                             | fig. [robot]
`Figure [robot]`                           | Figure [robot]
`lst. [sort]`                              | lst. [sort]
`listing [sort]`                           | listing [sort]
`Listing [sort]`                           | Listing [sort]
`[New York Times][nyt]`                    | [New York Times][nyt]
`[Google][]`                               | [Google][]
`footnote [^syntax]`                       | footnote [^syntax]
`[#Kajiya86]`                              | [#Kajiya86]

Any section header name followed by "section", "subsection", or "sec." will automatically be
linked to that section. To link by number, use one of those key words followed by the section
name in brackets. This won't work if you use the actual word "section" _as the title of a
section_...but it would be unexpected to have a section named "section" in a real document
anyway.

You can also insert HTML anchor (`<a>`) tags to create arbitrary internal links.

Reference-style links include arbitrary formatted text in brackets
followed by a case-insensitive symbolic name that must be defined
elsewhere in the document:

- Example using a symbolic name: [New York Times][nyt]
- Example using the text as its own symbol: [Google][]

Put the definitions at a convenient location elsewhere in the document:

~~~~~~~~~~~~none
    [nyt]: http://nytimes.com
    [google]: http://google.com
~~~~~~~~~~~~

Markdeep also supports footnotes, endnotes [^syntax], and citations
[#Kajiya86] using a similar syntax. The actual notes and bibliography
may be placed at the bottom of the document:

~~~~~~~~~~~~~~~~none
    [#Kajiya86]: James T. Kajiya. 1986 ...

    [^syntax]: Endnotes look like ...
~~~~~~~~~~~~~~~~

Regular links may also have attributes, for example,
[this link will directly download](http://casual-effects.com/markdeep/robot.jpg download).

URLs in explicit links may be surrounded by optional `"` quotation `"` marks. If your URL
contains parentheses, then it _must_ be surrounded in quotation marks to make it unambigious:

- [a link with parens]"http://casual-effects.com(bar")
- []"http://casual-effects.com(bar")

URLs with various forms of special characters are handled well even without quotation marks:

- [hyperlinks to URLs with underscores]https://archive.org/stream/Bazin_Andre_What_Is_Cinema_Volume_1/Bazin_Andre_What_Is_Cinema_Volume_1_djvu.txt
- https://archive.org/stream/Bazin_Andre_What_Is_Cinema_Volume_1/Bazin_Andre_What_Is_Cinema_Volume_1_djvu.txt

You can also use the CommonMark angle bracket syntax
`<http://foo.com/bar?arg=value&hello>` ==>
<http://foo.com/bar?arg=value&hello> provided that your URL only
contains lower-case letters. Otherwise the browser interprets it
as a tag and converts it to lowercase before Markdeep runs.

**Bibliography**:
[#Kajiya86]: James T. Kajiya. 1986. The Rendering Equation. 
In _Proceedings of Computer Graphics and Interactive Techniques 
(SIGGRAPH '86)_, ACM, 143-150. http://dx.doi.org/10.1145/15922.15902


[^syntax]: Endnotes look like reference-style links with an empty text
field. Endnotes may not contain multiple paragraphs (sorry, David
Foster Wallace), although they may refer to _other_ endnotes.


[nyt]: http://nytimes.com
[google]: http://google.com


Lists
---------------------------------------------------------------------------------------

A blank line or line ending in a colon must precede lists. Lists have lines that begin with a
number (which is not required to increment) and a period, or a bullet character (-, *, +). They
can also be nested. Example:

~~~~~~~~~~~~~~~~~~~~~~~
1. Monday
2. Tuesday
  1. Morning
  2. Afternoon
3. Wednesday
  - Bullets
  - Bullets
1. Thursday
  + Bullets
  + Bullets
1. Friday
  * Bullets
~~~~~~~~~~~~~~~~~~~~~~~

Examples of lists and floating diagrams:
                                                   *****************************
1. Monday                                          *   A         B         C   *
2. Tuesday                                         *   *-------->o<------->o   *
  1. Morning                                       *   ^        / ^        |   *
  2. Afternoon                                     *   |       v   \       v   *
3. Wednesday                                       *   o----->o---->o<---->*   *
  - Bullets                                        *   D      E     F      G   *
  - Bullets                                        *****************************
4. Thursday
5. Friday


A list with just bullets:
- Bread
- Fish
- Milk
- Cheese


A  list containing a code block:

1. This is the first list item.

   ~~~~~~
   // This is a code block
   if (x > 0) printf("hello!\n");
   ~~~~~~
   
1. This is the second list item.


- Level 1
 - Level 2
  - Level 3
- Level 1 again


- 1
 - 1.a
  - 1.a.i
  - 1.a.ii
 - 1.b

Lists can also:

* Use asterisks
* Instead of
* Minus signs
* `or have code`
* *and* other formatting

or

+ Use plus
+ Signs


Lists with blank lines between the elements are formatted with more spacing. There's actually
nothing special about this...that's just the regular paragraph separator.


1. Here's a list with some large elements that I chose to format by putting a blank line
   between the elements to make them more visually distinguished.

2. That's necessary with paragraph-sized elements; otherwise the
   text would appear to run together into a wall of text!
    
   - You can also
   - Nest lists within lists with spaces


Lists that begin with a number other than 1 use that number as the start index. The subsequent
numbers are irrelevant and automatically replaced with ascending numbers:

6. A list that starts at six!
1. and just
1. keeps going...


Task Lists
------------------------------------------------------------------------------

You can use the strikethrough syntax for task lists:

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1. ~~completed~~
  1. ~~subtask~~
1. uncompleted
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

which will format as:

1. ~~completed~~
  1. ~~subtask~~
1. uncompleted

or, use github or streamlined checkbox syntax for task lists :

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
github:
- [x] completed
  - [x] subtask
- [ ] uncompleted

streamlined:
[x] completed
  [x] subtask
[ ] uncompleted
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

github:
- [x] completed
  - [x] subtask
- [ ] uncompleted

streamlined:
[x] completed
  [x] subtask
[ ] uncompleted



Definition Lists
------------------------------------------------------------------------------

Apple
:   Pomaceous fruit of plants of the genus Malus in 
    the family Rosaceae.

    Multiple paragraphs are supported.

Orange
:   The fruit of an evergreen tree of the genus Citrus.

    - Can also
    - Put lists
    - In definitions

Definition lists with short definitions are formatted more tersely:

Grapes
: Available in purple ("red") and green ("white") varieties.

Bananas
: Only yellow.

Schedule Lists
------------------------------------------------------------------------------

Schedule lists contain titles that begin with a valid date. After the
title, arbitrary indented content appears, including lists, text, and
equations:

~~~~~~~~~~~~none
Tuesday Feb 16, 2016: Project Launch
 - Create specifications
 - Initialize revision control system
 
Friday Feb 19, 2016: Build Milestone
 - Build system fully functional
 - Placeholder unit tests committed
                  
(Monday Feb 29, 2016): Office Closed
~~~~~~~~~~~~

If the schedule is sufficiently long and dense, then a calendar preview
is shown before it. Entries in parenthesis with no further details
are formatted with a more subtle style.

Formatted schedule lists
look like:

Tuesday Feb 16, 2016: Project Launch
 - Create specifications
 - Initialize revision control system

Friday Feb 19, 2016: Build Milestone
 - Build system fully functional
 - Placeholder unit tests committed
 
 _Plan for weekend overtime if we miss this milestone_
 
Wednesday Feb 24, 2016: Site Visit
 **Whole team vistits client**. Dress appropriately.

Friday Feb 26, 2016: Demo Milestone
 - Internal demonstrations for management
 - QA reports due

(Monday Feb 29, 2016): Office Closed

Tuesday Mar 1, 2016: Code Freeze
 - Commit final features before this date
 - Only priority 1 fixes with issue tracking numbers
   after this point

Monday Mar 7, 2016: Beta

Wednesday Mar 16, 2016: Gold

Dates can be in any unambigous format that includes a month, day, and
four-digit year between 1000 and 2999, such as:

- 2001-03-01
- 1 Apr. 1999
- 4-07-1976
- February 16, 2016
- 2020 Jan. 15
- May 15th, 1982

The US date format MM/DD/YYYY is not supported because it is
ambiguous. The date may include the name of a day of the week
(e.g., Sunday). It will be replaced with the correct day.

When months are given by name, they must match the localization
settings.


Block Quotes
------------------------------------------------------------------------------

Email-style indenting creates a blockquote:

> This is an indented blockquote: Ut at felis diam. Aliquam massa odio, pharetra ut neque sed, commodo
> dignissim orci. Curabitur quis velit gravida, blandit diam nec,
> lacinia quam. Maecenas pharetra, velit in vestibulum auctor, diam
> ipsum suscipit arcu, non sodales orci nibh sit amet leo. Nulla dictum

Blockquotes formatted in the style of an actual quotation receive
special treatment for fancy quoting:

> "You want to make it seem alive and effortless and fun, but that's an
> art that took me 25 years to really learn. I wanted to do it very much
> 25 years ago, but I didn't know how."
>
>      -- David O. Russell, director of American Hustle



Tables
------------------------------------------------------------------------------

Source:
~~~~~~~~~~~~none
 Maine | Iowa | Colorado 
-------|------|----------
   1   |  4   |   10
  ME   |  IA  |   CO
 Blue  | Red  | Brown
  [Optional caption]

 Maine | Iowa | Colorado 
-------|------|----------
   1   |  4   |   10
  ME   |  IA  |   CO
 Blue  | Red  | Brown
[Table [states]: Caption with label.]

Item | Type | Cost
---- |:----:| ----:
Fish |  F   | 1.00
Axe  |  W   | 3.25
Gold |  I   |20.50


 | A |
 |---|
 | B |
 | C |
 | D |

~~~~~~~~~~~~

Result:

 Maine | Iowa | Colorado 
-------|------|----------
   1   |  4   |   10
  ME   |  IA  |   CO
 Blue  | Red  | Brown
 [Optional caption]


 Maine | Iowa | Colorado 
-------|------|----------
   1   |  4   |   10
  ME   |  IA  |   CO
 Blue  | Red  | Brown
[Table [states]: Caption with label.]


With alignment:

Item | Type | Cost
---- |:----:| ----:
Fish |  F   | 1.00
Axe  |  W   | 3.25
Gold |  I   |20.50


Single-column:

 | A |
 |---|
 | B |
 | C |
 | D |


Page Breaks
------------------------------------------------------------------------------

To support other markdown conventions, `\pagebreak` and `\newpage` will insert a page break in
a document when printed or converted to PDF. You can also use a pattern of a series of five `+`
signs on their own line, which will form a horizontal rule on screen and a new page when
printed.

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

To make top-level section headers also force page breaks, add the following to your
document or CSS file:

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
&lt;style&gt;.md h1, .md .nonumberh1 {page-break-before:always}&lt;/style&gt;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Images
------------------------------------------------------------------------------

There's no natural way to embed an image into a document that is also readable as plain
text. Markdeep follows markdown's somewhat reasonable syntax.  The source

`      ![A picture of a robot](robot.jpg)` 

becomes:

![A picture of a robot](robot.jpg)

Optional labels may be applied:

`      ![Figure [robot]: A picture of a robot](robot.jpg)` 

![Figure [robot]: A picture of a robot](robot.jpg)

Any text after the URL is used as HTML attributes. If the attributes
include width or height specifications, then the image is linked to
the original.

````
![Figure [robot2]: A picture of a robot with a caption larger
than it.](robot.jpg width="150px" border="1")
````

![Figure [robot2]: A picture of a robot with a caption larger
than it.](robot.jpg width="150px" border="1")


![Floating robot with a large caption.](robot.jpg width="20%") If the image is embedded in a
paragraph and has a caption, then it floats right and any width
specification is propagated to the full captioned image, for example, 
the image to the right of this paragraph. Use a space as your caption
if you want this behavior but don't actually want a visible caption.

You can also just use a raw HTML `<img>` tag: 

`       <img src="robot.jpg" width="128" border="2">`

<img src="robot.jpg" width="128" border="2">

Captionless images work as well. Source `![](robot.jpg)` becomes:

![](robot.jpg)

Images are centered if they appear in their own paragraph block and inlined otherwise. Grids of
images are recognized and laid out as grids using HTML tables:


![1](robot.jpg width=100) ![2](robot.jpg width=100) ![3](robot.jpg width=100)
![4](robot.jpg width=100) ![5](robot.jpg width=100) ![This image has a<br/>long caption](robot.jpg width=100)


Reference Images
----------------------------------------------------------------

Markdeep introduces a new feature called "reference images". These have several nice properties:

* Put long image URLs elsewhere in the document for clarity
* Indirection so that multiple images can reference a symbolic URL
* Embed [base64 encoded images as data URIs]https://www.base64-image.de/ directly in a Markdeep text file


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
![This is a bas64 embedded reference image][hasselhoff.png]

<!-- This can appear anywhere in the document. I recommend putting it at the bottom.  -->
[hasselhoff.png]: data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAA...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

![This is a base64 embedded reference image][hasselhoff.png]

The syntax is the same as CommonMark reference _links_, just with square brackets. 
You can use all of the Markdeep image features with reference images, including 
image grids, floating images, and images with attributes.

<!-- This can appear anywhere in the document. I recommend putting it at the bottom.  -->


Videos
----------------------------------------------------------------

Video file extensions are automatically detected and will embed a small video
player:

     ![A video](rocket.mp4)


URLs for Youtube and Vimeo videos will also automatically embed a video player:

![State Zero](https://www.youtube.com/watch?v=QgPMyvZMBY0)

![Figure [fig:boy]: The Boy with a Camera For a Face](https://vimeo.com/channels/staffpicks/151493973)

URLs for images may be surrounded in optional `"` quotation `"` marks. If your URL contains
parentheses, then it _must_ be surrounded in quotation marks to make it unambigious. 

Recall that URLs are not permitted to contain spaces (by their specification), so to embed
a local image whose filename has a space, either rename the file or replace the spaces
with `%20` in the URL version of the name.


Audio
------------------------------------------------------------------------------

MP3, WAV, OGG, etc. audio for music and podcasts are supported using the same
syntax as for images and video:

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
![The Personal Best CBC Podcast](https://podcast-a.akamaihd.net/mp3/podcasts/personalbest-GRHHTnR3-20180415.mp3)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Creates:
![The Personal Best CBC Podcast](https://podcast-a.akamaihd.net/mp3/podcasts/personalbest-GRHHTnR3-20180415.mp3)



Symbol Substitutions
------------------------------------------------------------------------------

Markdeep converts `<->`, `<==>`, `->`, `-->`, `<-`, `<--`, `==>`, and `<==` to arrows if they
aren't in a code block or latex expression and are surrounded by whitespace. Examples:

- if this ==> then that
- here <== there
- this <==> that
- A <- B
- X -> Y
- back <-> forth
- long --> way
- back <-- there

Two or three minus signs are converted to an em dash--like that.

An "x" between numbers, such as 1920x1080 or 3 x 4, will be converted to the times
symbol.

Negative numbers, such as -5 and minus signs between numbers such as 
2 - 1, will have a minus sign instead of a hyphen.

Degrees are reformatted to the degree symbol:

- Cold, 37-degree F water.
- A 45-degree angle.
- A right angle's measure is 90 degrees. 

It doesn't reformat the word "degree" when not following digits:

- Don't give me the third degree!
- I have two degrees from MIT.

"Smart quotes" are applied for double-quote marks based on position
relative to whitespace:

"a" b c

a "b" c

a b "c"

a "b!" c

a "b," c

a "b". C

a, "b" c

a---"b"---c

a ("b") c

"error" ==> "correction"

Inch or minute markers such as 3' 9" are not converted. Quotation
marks in <span style="color:#F00">HTML attributes</span> and
in code blocks, e.g., `var x = "hello world"`, are not converted.


Admonitions
-----------------------------------------------------------------------------

Admonitions are small break-out boxes with notes, tips, warnings, etc. for the reader. They
begin with a title line of a pattern of three exclaimation marks, an optional CSS class, and an
optional title. All following lines that are indented at least three spaces are included in the
body, which may include multiple paragraphs.

The default stylesheet provides classes for "note" (default), "tip", "warning", and "error".
These are case insensitive and ignore any colon after the CSS class. Here are some examples:

````````````````````````````````````````````````````````````` none
!!!
    I'm a note. Don't mind me, I'm just sitting here.

!!! note
    Another note.

!!! Tip
    Close the door on the way out.

!!! WARNING
    I'm a warning, perhaps. *Something might happen!*

!!! ERROR: Seriously
    Watch out, something **bad** could happen.

    This is still more error text.
`````````````````````````````````````````````````````````````

!!!
    I'm a note. Don't mind me, I'm just sitting here.

!!! note
    Another note.

!!! Tip
    Close the door on the way out.

!!! WARNING
    I'm a warning, perhaps. *Something might happen!*

!!! ERROR: Seriously
    Watch out, something **bad** could happen.

    This is still more error text.


Fenced Code Blocks
------------------------------------------------------------------------------

Set off large blocks of code using equal-length strings of tilde `~`
or back-tick <code>`</code> characters. Each produces a different CSS
class so that they can be styled differently. 

By default, tilde blocks have lines before and after them and are
inset for use as code listings instead of large inline code
blocks. Both styles receive syntax coloring and automatic programming
language detection.

You can override automatic programming language detection by putting
the name of the language immediately following the first fence. You can
specify a custom CSS class for a code block by placing its name after the
language name.

<pre>
<code>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ C</code>
void insertion_sort(int data[], int length) {
    for (int i = 0; i < length; ++i) {
       ...
    }
}
<code>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</code>
</pre>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ C
void insertion_sort(int data[], int length) {
    for (int i = 0; i < length; ++i) {
       ...
    }
}
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


Alternative back-tick markup:

````````````````````````````````````
def insertionSort(data):
    for i in range(0, len(data)):
        j = i;

        while (j > 0) and (data[j] < data[j - 1]):
            temp = data[j]
            data[j] = data[j - 1]
            data[j] = temp
            --j
````````````````````````````````````

### HTML and LaTeX Blocks

You can even have HTML in a code block:

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<b>Show this</b> HTML as <i>source</i>,
<code>not code</code>.
<img src="robot.jpg">
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

`<img src="robot.jpg">`

`````````
<img src="robot.jpg">
`````````

LaTeX and other languages that use dollar signs work fine inside code
fences:

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
$ \int_0^1 x^2 dx $

$$$a = $$$e
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

...and of course, Markdeep inside Markdeep:

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Do not 
- Format
  - this as a **list**!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

### Code Blocks with Captions

Code listings may have captions:

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Python
def insertionSort(data):
    for i in range(0, len(data)):
        j = i;

        while (j > 0) and (data[j] < data[j - 1]):
            temp = data[j]
            data[j] = data[j - 1]
            data[j] = temp
            --j
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[Listing [sort]: An insertion sort]

If you don't have a lot of exposition to share, then code blocks can be back to back:

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
printf("Hello\n");
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
printf("World\n");
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


### Line Numbers

Adding the `linenumbers` CSS class to a listing makes line numbers appear:


<pre><code>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Python linenumbers</code>
def insertionSort(data):
...
<code>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</code>
</pre>


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Python linenumbers
def insertionSort(data):
    for i in range(0, len(data)):
        j = i;

        while (j > 0) and (data[j] < data[j - 1]):
            temp = data[j]
            data[j] = data[j - 1]
            data[j] = temp
            --j
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[Listing [sort2]: An insertion sort with line numbers]



### Multi-code Blocks and Custom CSS 

You can interlace different languages or CSS classes within a single code block, but each is required
to specify the language in this case. This is convenient for highighting lines or showing the 
trace of an interactive session.

An example of a fenced code block with a CSS class:

<pre>
<code>~~~~~~~~~~~~~~ Python input</code>
>>> x = [1, 2, 3, 4]
>>> [y * 2 for y in x]
<code>~~~~~~~~~~~~~~ none output</code>
[2, 4, 6, 8]
<code>~~~~~~~~~~~~~~ Python input</code>
>>> x + [5]
<code>~~~~~~~~~~~~~~ none output</code>
[1, 2, 3, 4, 5]
<code>~~~~~~~~~~~~~</code>
[This listing combines multiple code blocks to show the input and output of an interactive section.]
</pre>

And its result:

~~~~~~~~~~~~~~ Python input
>>> x = [1, 2, 3, 4]
>>> [y * 2 for y in x]
~~~~~~~~~~~~~~ none output
[2, 4, 6, 8]
~~~~~~~~~~~~~~ Python input
>>> x + [5]
~~~~~~~~~~~~~~ none output
[1, 2, 3, 4, 5]
~~~~~~~~~~~~~~
[This listing combines multiple code blocks to show the input and output of an interactive section.]


<style>
.md code > .input  { font-style: italic; }
.md code > .output { font-weight: bold; background: #FF7; margin-left: -20px; padding-left: 20px}
</style>



### Less-than Signs in Code###
#### Summary ####

Less-than and greater-than signs (`<` and `>`) do not need to be escaped in diagrams or code
as long as they do not appear immediately adjacent to a letter. Usually adding spaces or
using inline code backquote escaping will suffice even in those cases.

If you have trouble with less-than and greater-than signs right next to capitalized
letters in code blocks, do _one_ of the following:

- Put spaces after angle brackets: `std::vector< Capitalized >`
- Use HTML entity escapes: `std::vector&amp;lt&#xFEFF;Capitalized&amp;gt&#xFEFF;`
- Wrap code examples in `&lt;sc&#xFEFF;ript type="preformatted"&gt;...&lt;/script&gt;`
- Wrap your whole document in `&lt;sc&#xFEFF;ript type="preformatted"&gt;...&lt;/script&gt;`

<!-- The following list uses Unicode characters that look like ASCII
     but aren't, in order to prevent Markdeep and HTML from processing
     the code examples themselves. Do not copy from the document or you'll
     copy those invisible characters. Instead, see the actual code
     examples farther down the page. -->
     
You don't need to do this for legal HTML or XML in code blocks.

#### Details ####
Less-than and greater-than signs are allowed in code blocks
(as well as anywhere else in Markdeep), and will be handled
correctly if they are followed by a whitespace character.

Likewise, legal HTML and XML are correctly processed as code
when in code blocks.

However, because browsers interpret "`&lt;`" _immediately followed by_
a character as an HTML tag, less-than signs without a following space
must be formatted more carefully in shell scripts and languages such
as C++ and Java.  

If the character following the less-than sign is lower-case, for
example in: "`std::vector&lt;int&gt;`", then no consideration is
needed. If the character following less-than is a capital letter, then
the browser will automatically make it lower case. If the following
character is a slash, then the browser will interpret it as a stray
tag and automatically remove it.

If you care most about being able to read your document in a browser
when the markdeep.js script is not available (due to no local copy and
no Internet connection), then either use surrounding whitespace or
use HTML entity codes to avoid incorrect processing of less-than signs.

**Reformatted Examples:**

~~~~~~~~~~~~~~~~~~~~
#include &lt;foo.h&gt;
ls < /dev/null
ls&amp;lt;/dev/null
std::vector< Capitalized > array;
std::vector&amp;lt;Capitalized&amp;gt; array;
~~~~~~~~~~~~~~~~~~~~

If care more about not having to reformat your code examples, then
just include them in preformatted `&lt;script&gt;` blocks:

**Script Block Examples:**

<script type="preformatted">
~~~~~
#include <foo.h>
std::vector<Capitalized> array;
ls</dev/null
~~~~~
</script>

You can also include your entire document in a preformatted script
block to avoid the need for marking up each code (and inline code)
example.



Diagrams
--------------------------------------------------------------------------------

Diagrams can be inserted alongside, as in this      ****************************
example, or between paragraphs of text as shown     * .---------.              *
below.                                              * |  Server |<------.      *
                                                    * '----+----'       |      *
The diagram parser leaves symbols used as labels    *      |            |      *
unmodified, so characters like > and ( can appear   *      | DATA CYCLE |      *
inside of the diagram. In fact, any plain text      *      v            |      *
may appear in the diagram. In addition to labels,   *  .-------.   .----+----. *
any un-beautified text will remain in place for     * | Security|  |  File   | *
use as ASCII art. Thus, the diagram is rarely       * | Policy  +->| Manager | *
distored by the beautification process.             *  '-------'   '---------' *
                                                    ****************************

*************************************************************************************************
*.-------------------.                           ^                      .---.                   *
*|    A Box          |__.--.__    __.-->         |                      |   |                   *
*|                   |        '--'               v                      |   |                   *
*'-------------------'                                                  |   |                   *
*                       Round                                       *---(-. |                   *
*  .-----------------.  .-------.    .----------.         .-------.     | | |                   *
* |   Mixed Rounded  | |         |  / Diagonals  \        |   |   |     | | |                   *
* | & Square Corners |  '--. .--'  /              \       |---+---|     '-)-'       .--------.  *
* '--+------------+-'  .--. |     '-------+--------'      |   |   |       |        / Search /   *
*    |            |   |    | '---.        |               '-------'       |       '-+------'    *
*    |<---------->|   |    |      |       v                Interior                 |     ^     *
*    '           <---'      '----'   .-----------.              ---.     .---       v     |     *
* .------------------.  Diag line    | .-------. +---.              \   /           .     |     *
* |   if (a > b)     +---.      .--->| |       | |    | Curved line  \ /           / \    |     *
* |   obj->fcn()     |    \    /     | '-------' |<--'                +           /   \   |     *
* '------------------'     '--'      '--+--------'      .--. .--.     |  .-.     +Done?+-'      *
*    .---+-----.                        |   ^           |\ | | /|  .--+ |   |     \   /         *
*    |   |     | Join                   |   | Curved    | \| |/ | |    \    |      \ /          *
*    |   |     +---->  |                 '-'  Vertical  '--' '--'  '--  '--'        +  .---.    *
*    '---+-----'       |                                                            |  | 3 |    *
*                      v                             not:line    'quotes'        .-'   '---'    *
*                  .---+--------.            /            A || B   *bold*       |        ^      *
*                 |   Not a dot  |      <---+---<--    A dash--is not a line    v        |      *
*                  '---------+--'          /           Nor/is this.            ---              *
*************************************************************************************************
[Figure [diagram]: Diagrams can also have captions]


Code with line-like symbols is allowed in diagrams and is parsed correctly so
long as you make it unambiguous:

**********************************************
*  .-------------------------+--+--------.  
*  |   --x;       x->y       |__|        |  
*  |   0  __proto__  __FILE__   <=       |
*  |   __   a | b              -->   foo |
*  |  |__|  y--;   x || y  a + b   <--o--+
*  |__|__|_______________________________|
**********************************************


Here's a diagram on the left of some text:

**************  _Song of Myself: 35_
*   |    |   *  
* --+<---+-- *  Would you hear of an old-time sea-fight? <br/>
*   |    ^   *  Would you learn who won by the light of the moon and stars? <br/>
*   v    |   *  List to the yarn, as my grandmother's father the sailor told it to me.
* --+--->+-- *  
*   |    |   *  Walt Whitman
**************


If there is no leading text on the left except for whitespace, a diagram may omit the asterisks on the
right side for convenience:

****************************************
*  .----.
*  |    |
*  '----'     .------------>
*            |
*             '-------------
****************************************

Below are some more examples of diagrams.

Diagram Examples
================================================================================

Lines with Decorations
--------------------------------------------------------------------------------
*************************************************************************************************
*                ________                            o        *          *   .--------------.   *
*   *---+--.    |        |     o   o      |         ^          \        /   |  .----------.  |  *
*       |   |    '--*   -+-    |   |      v        /            \      /    | |  <------.  | |  *
*       |    '----->       .---(---'  --->*<---   /      .+->*<--o----'     | |          | | |  *
*   <--'  ^  ^             |   |                 |      | |  ^    \         |  '--------'  | |  *
*          \/        *-----'   o     |<----->|   '-----'  |__|     v         '------------'  |  *
*          /\                                                               *---------------'   *
*************************************************************************************************

Graph with Large Nodes
--------------------------------------------------------------------------------

*************************************************************************************************
*                                                                                               *
*   .---.       .-.        .-.       .-.                                       .-.              *
*   | A +----->| 1 +<---->| 2 |<----+ 4 +------------------.                  | 8 |             *
*   '---'       '-'        '+'       '-'                    |                  '-'              *
*                           |         ^                     |                   ^               *
*                           v         |                     v                   |               *
*                          .-.      .-+-.        .-.      .-+-.      .-.       .+.       .---.  *
*                         | 3 +---->| B |<----->| 5 +---->| C +---->| 6 +---->| 7 |<---->| D |  *
*                          '-'      '---'        '-'      '---'      '-'       '-'       '---'  *
*************************************************************************************************



Graph with Small Nodes
--------------------------------------------------------------------------------

*************************************************************************************************
*                 A      1      2     4                        8                                *
*                  *----->o<---->o<----o-----------.            o                               *
*                                ^     ^            |           ^                               *
*                                |     |            |           |                               *
*                                v     |            v           |                               *
*                                o<--->*<---->o---->*---->o---->o<---->*                        *
*                               3     B      5     C     6     7      D                         *
*************************************************************************************************


Flow Chart
--------------------------------------------------------------------------------

*************************************************************************************************
*                                      .                                                        *
*   .---------.                       / \                                                       *
*  |   START   |                     /   \        .-+-------+-.      ___________                *
*   '----+----'    .-------.    A   /     \   B   | |COMPLEX| |     /           \      .-.      *
*        |        |   END   |<-----+CHOICE +----->| |       | +--->+ PREPARATION +--->| X |     *
*        v         '-------'        \     /       | |PROCESS| |     \___________/      '-'      *
*    .---------.                     \   /        '-+---+---+-'                                 *
*   /  INPUT  /                       \ /                                                       *
*  '-----+---'                         '                                                        *
*        |                             ^                                                        *
*        v                             |                                                        *
*  .-----------.                 .-----+-----.        .-.                                       *
*  |  PROCESS  +---------------->|  PROCESS  |<------+ X |                                      *
*  '-----------'                 '-----------'        '-'                                       *
*************************************************************************************************

Line Ends
--------------------------------------------------------------------------------


*************************************************************************************************
*                                                                                               *
*   o--o    *--o     /  /   *  o  o o o o   * * * *   o o o o   * * * *      o o o o   * * * *  *
*   o--*    *--*    v  v   ^  ^   | | | |   | | | |    \ \ \ \   \ \ \ \    / / / /   / / / /   *
*   o-->    *-->   *  o   /  /    o * v '   o * v '     o * v \   o * v \  o * v /   o * v /    *
*   o---    *---                                                                                *
*                                 ^ ^ ^ ^   . . . .   ^ ^ ^ ^   \ \ \ \      ^ ^ ^ ^   / / / /  *
*   |  |   *  o  \  \   *  o      | | | |   | | | |    \ \ \ \   \ \ \ \    / / / /   / / / /   *
*   v  v   ^  ^   v  v   ^  ^     o * v '   o * v '     o * v \   o * v \  o * v /   o * v /    *
*   *  o   |  |    *  o   \  \                                                                  *
*                                                                                               *
*   <--o   <--*   <-->   <---      ---o   ---*   --->   ----      *<--   o<--   -->o   -->*     *
*                                                                                               *
*************************************************************************************************

Tests for some tough cases:
************************************************
*   +-+         \     \  |  /     /            *
*  +   +         \     v v v     /             *
*   +-+           \ .---------. /     \ | /    *
*                  v|         |v       vvv     *
*   +-+         --->|         |<---  -->o<--   *
*  |   |           ^|         |^       ^^^     *
*   +-+           / '---------' \     / | \    *
*                /     ^ ^ ^     \             *
*               /     /  |  \     \            *
************************************************

Trees
--------------------------------------------------------------------------------

*************************************************************************************************
*                                                                                               *
*          .               .                .               .--- 1          .-- 1     / 1       *
*         / \              |                |           .---+            .-+         +          *
*        /   \         .---+---.         .--+--.        |   '--- 2      |   '-- 2   / \ 2       *
*       +     +        |       |        |       |    ---+            ---+          +            *
*      / \   / \     .-+-.   .-+-.     .+.     .+.      |   .--- 3      |   .-- 3   \ / 3       *
*     /   \ /   \    |   |   |   |    |   |   |   |     '---+            '-+         +          *
*     1   2 3   4    1   2   3   4    1   2   3   4         '--- 4          '-- 4     \ 4       *
*                                                                                               *
*************************************************************************************************


Circuits
--------------------------------------------------------------------------------

*************************************************************************************************
*                                 ____                      *                                   *
*                                |    |_____.---.           |                                   *
*                                o     _____|    )----------)-------.                           *
*                               / \   |     '---'           |     __|__                         *
*                              /___\  |                     |     \   /                         *
*                                |    '-------------.       |      \ /                          *
*              A ----------------'                  |       |       o                           *
*                   .-------------------.     o-----)-------'       |                           *
*                   |                   |___.---.   |               |___.---.                   *
*              B ---*---.__.---.         ___|    )--*--.__..---.     ____)   )----- Y           *
*                        __|    o----*--'   '---'    ______))   )---'   '---'                   *
*              C -------'  '---'     |              |     ''---'                                *
*                                    |              o                                           *
*                                    |             / \                                          *
*                                    |            /___\                                         *
*                                    |              |                                           *
*                                    '--------------'                                           *
*************************************************************************************************


Gantt Chart
--------------------------------------------------------------------------------

*************************************************************************************************
*            ║ Preproduction┆       Alpha┆             RC1┆
* ═══════════╬══════════════╪════════════╪════════════════╪══
* Story      ║    ▆▆▆▆▆▆▆▆  ┆           ▆┆▆▆▆             ┆
* Concept Art║       └▆▆▆▆▆▆┆▆▆▆┐        ┆                ┆
* Modeling   ║              ┆   └▆▆▆▆▆▆▆▆┆▆▆▆▆▆▆▆         ┆
* Rigging    ║              ┆        └▆▆▆┆▆▆▆▆▆▆▆▆▆▆▆▆    ┆
* Mechanics  ║        ▆▆▆▆▆▆┆▆▆┐         ┆     ░░░░▆▆▆▆   ┆
* Engine Code║   ▆▆▆▆▆▆▆┐ │ ┆  └────────▆┆▆▆▆▆▆▆▆▆▆▆▆▆▆   ┆
* Game Code  ║          └─┴▆┆▆▆▆▆▆▆▆▆▆▆▆▆┆▆▆▆▆ ░░░░   ▆   ┆
*            ║              ┆            ┆    Freeze      ┆
*************************************************************************************************


Big Shapes
--------------------------------------------------------------------------------
*************************************************************************************************
*                                                                                               *
*          .---------.   .   .-------.        .-------.   .---------.    .-----.      .----.    *
*           \       /   / \   \       \      |         |  |         |   /       \    /      \   *
*            \     /   /   \   \       \     |         |  |         |  /         \  |        |  *
*             \   /   /     \   \       \    |         |  |         |  \         /  |        |  *
*              \ /   /       \   \       \   |         |  |         |   \       /    \      /   *
*               '   '---------'   '-------'   '-------'   '---------'    '-----'      '----'    *
*                                                                                               *
*************************************************************************************************


Small Shapes
--------------------------------------------------------------------------------
*************************************************************************************************
*                               .---.                                                 __    ..  *
*  .--.     .  .-----.           \ /   .---.                    .---.    ___    ___  |  |   | ) *
* /    \   / \  \   /  .-.    .   ' .  |   |   .---. .---.     |     |  /   \  |   | '--'   ''  *
* \    /  /   \  \ /  |   |  / \   / \ '---'  /   /   \   \    |     |  \___/  |___|    ..  __  *
*  '--'  '-----'  '    '-'  '---' /___\      '---'     '---'    '---'                  ( | |__| *
*                                                                                       ''      *
*************************************************************************************************


Overlaps and Intersections
--------------------------------------------------------------------------------

*************************************************************************************************
*                                                                                               *
*           .-.           .-.           .-.           .-.           .-.           .-.           *
*          |   |         |   |         |   |         |   |         |   |         |   |          *
*       .---------.   .--+---+--.   .--+---+--.   .--|   |--.   .--+   +--.   .------|--.       *
*      |           | |           | |   |   |   | |   |   |   | |           | |   |   |   |      *
*       '---------'   '--+---+--'   '--+---+--'   '--|   |--'   '--+   +--'   '--|------'       *
*          |   |         |   |         |   |         |   |         |   |         |   |          *
*           '-'           '-'           '-'           '-'           '-'           '-'           *
*************************************************************************************************



Big Grids
--------------------------------------------------------------------------------

*************************************************************************************************
*    .----.        .----.                                                                       *
*   /      \      /      \            .-----+-----+-----.                                       *
*  +        +----+        +----.      |     |     |     |          .-----+-----+-----+-----+    *
*   \      /      \      /      \     |     |     |     |         /     /     /     /     /     *
*    +----+   B    +----+        +    +-----+-----+-----+        +-----+-----+-----+-----+      *
*   /      \      /      \      /     |     |     |     |       /     /     /     /     /       *
*  +   A    +----+        +----+      |     |  B  |     |      +-----+-----+-----+-----+        *
*   \      /      \      /      \     +-----+-----+-----+     /     /  A  /  B  /     /         *
*    '----+        +----+        +    |     |     |     |    +-----+-----+-----+-----+          *
*          \      /      \      /     |  A  |     |     |   /     /     /     /     /           *
*           '----'        '----'      '-----+-----+-----'  '-----+-----+-----+-----+            *
*                                                                                               *
*************************************************************************************************


Small Grids
--------------------------------------------------------------------------------

*************************************************************************************************
*       ___     ___      .---+---+---+---+---.     .---+---+---+---.  .---.   .---.             *
*   ___/   \___/   \     |   |   |   |   |   |    / \ / \ / \ / \ /   |   +---+   |             *
*  /   \___/   \___/     +---+---+---+---+---+   +---+---+---+---+    +---+   +---+             *
*  \___/ b \___/   \     |   |   | b |   |   |    \ / \a/ \b/ \ / \   |   +---+   |             *
*  / a \___/   \___/     +---+---+---+---+---+     +---+---+---+---+  +---+ b +---+             *
*  \___/   \___/   \     |   | a |   |   |   |    / \ / \ / \ / \ /   | a +---+   |             *
*      \___/   \___/     '---+---+---+---+---'   '---+---+---+---'    '---'   '---'             *
*                                                                                               *
*************************************************************************************************

Tiny Grids
--------------------------------------------------------------------------------

*************************************************************************************************
* ┌─┬─┬─┬─┬─┐  ▉▉  ▉▉  ▉▉    ⬢ ⬡ ⬡     ┌┬┬┬┬┬┬┬┬┐  ⁚⁚⁚⁚⁚⁚⁚⁚⁚⁚   ___________    +-+-+-+-+        *
* ├─┼─┼─┼─┼─┤    ▉▉  ▉▉     ⬢ ⬢ ⬡ ⬡    ├┼┼┼┼┼┼┼┼┤  ⁚⁚⁚⁚⁚⁚⁚⁚⁚⁚  |__|__|__|__|   +-+-+-+-+        *
* ├─┼─┼─┼─┼─┤  ▉▉  ▉▉  ▉▉  ⬢ ⬢ ⬢ ⬡ ⬡   ├┼┼┼┼┼┼┼┼┤  ⁚⁚⁚⁚⁚⁚⁚⁚⁚⁚  |__|__|__|__|   +-+-+-+-+        *
* ├─┼─┼─┼─┼─┤    ▉▉  ▉▉     ⬡ ⬡ ⬡ ⬡    ├┼┼┼┼┼┼┼┼┤  ⁚⁚⁚⁚⁚⁚⁚⁚⁚⁚  |__|__|__|__|   +-+-+-+-+        *
* └─┴─┴─┴─┴─┘  ▉▉  ▉▉  ▉▉    ⬡ ⬡ ⬡     └┴┴┴┴┴┴┴┴┘  ⁚⁚⁚⁚⁚⁚⁚⁚⁚⁚  |__|__|__|__|   +-+-+-+-+        *
*************************************************************************************************

Dot Grids
--------------------------------------------------------------------------------

*************************************************************************************************
*                                                                                               *
*  o o o o o  * * * * *  * * o o *    o o o      * * *      o o o     · * · · ·     · · ·       *
*  o o o o o  * * * * *  o o o o *   o o o o    * * * *    * o * *    · * * · ·    · · · ·      *
*  o o o o o  * * * * *  o * o o o  o o o o o  * * * * *  o o o o o   · o · · o   · · * * ·     *
*  o o o o o  * * * * *  o * o o o   o o o o    * * * *    o * o o    · · · · o    · · * ·      *
*  o o o o o  * * * * *  * * * * o    o o o      * * *      o * o     · · · · ·     · · *       *
*                                                                                               *
*************************************************************************************************

Unicode in Diagram
--------------------------------------------------------------------------------

************************************************************************************************
*                           ↖ ↗   ✶ ✹ ✩ ⓵             ⎲                ░░▒▒▓▓▉▉ ▚▚  ▢ ▢ ⬚ ⬚ ⊕   
* ▲       ◀━━━━━━━▶         ↙ ↘   ➊ ❶ ➀ ①   ➕ ➖ ➗ ❌   ⎳       ╲   ╱    ░░▒▒▓▓▉▉ ▚▚  ▢ ▢ ⬚ ⬚ ⊜
* ┃  ╭╌╌╌╌╌╌╌╮    ╔═══════╗    ┏━━━━━━━┓    ┏╍╍╍╍╍╍╍┓          ╲ ╱     ░░▒▒▓▓▉▉ ▚▚  ⬣ ⬣ ⎔ ⎔ ⊗   
* ┃  ╎       ╎    ║       ║    ┃       ┃    ╏       ╏  ⎛  ⎧  ⎡  ╳      ░░▒▒▓▓▉▉ ▚▚  ⬣ ⬣ ⎔ ⎔ ⊘   
* ┃  ╎       ╎    ║       ║    ┃       ┃    ╏       ╏⋮ ⎜  ⎨  ⎢ ╱ ╲     ░░▒▒▓▓▉▉ ▚▚  ◯ ◯ ⏣ ⏣ ⊙   
* ▼  ╰╌╌╌╌╌╌╌╯    ╚═══════╝    ┗━━━━━━━┛ ⋱  ┗╍╍╍╍╍╍╍┛⋮ ⎝  ⎩  ⎣╱   ╲    ░░▒▒▓▓▉▉ ▚▚  ◯ ◯ ⏣ ⏣ ⊛   
*                                          ⋱         ⋮                   ◢▉▉◣                  
*   ∑xᵢ   𝚺xᵢ       ∫t²dt                    ⋱       ⋮                   ◥▉▉◤                   
************************************************************************************************


Simple Plot Diagram
-------------------------------------------------------------------------------
*************************************************
*        *    Uin ┊   .------------------------
*        ┊   |                        
*        ┊   |                        
*        *---'┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄▶
*              
*     Udc▲                          
* Udc_OK ┊      .---------------------
*        ┊     /  :                   
*        ┊    /   :                   
*        *---'┄┄┄┄:┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄▶
*                 :<----->:           
*        ▲          500ms :           
*        ┊                :           
*Cpu.Qon ┊┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄.-----------
*        ┊                |  Inactive 
*        ┊    Active      |  
*        *----------------'┄┄┄┄┄┄┄┄┄┄┄▶
*        
*************************************************


Graphics Diagram
-------------------------------------------------------------------------------
*************************************************************************************************
*                                                                             .                 *
*    0       3                          P *              Eye /         ^     /                  *
*     *-------*      +y                    \                +)          \   /  Reflection       *
*  1 /|    2 /|       ^                     \                \           \ v                    *
*   *-------* |       |                v0    \       v3           --------*--------             *
*   | |4    | |7      | ◄╮               *----\-----*                                           *
*   | *-----|-*     ⤹ +-----> +x        /      v X   \          .-.<--------        o           *
*   |/      |/       / ⤴               /        o     \        | / | Refraction    / \          *
*   *-------*       v                 /                \        +-'               /   \         *
*  5       6      +z              v1 *------------------* v2    |                o-----o        *
*                                                               v                               *
*************************************************************************************************


Annotated Table Diagram
--------------------------------------------------------------------------------

**********************************************
*       ┏━━━━┳━━━━┳   ┳━━━━┓
*       ┃ A₁ ┃ A₂ ┃ ⋯ ┃ Aⱼ ┃ <--- Basis 
*       ┡━━━━╇━━━━╇   ╇━━━━┩
*       │ 16 │  4 │ ⋯ │  9 │
*     ⎧ ├────┼────┼   ┼────┤
*     │ │  1 │ -2 │ ⋯ │ 10 │
*  Xᵢ ⎨ ├────┼────┼   ┼────┤
*     │ │  8 │ 52 │ ⋯ │  0 │
*     ⎩ ├────┼────┼   ┼────┤
*       │ 14 │  0 │ ⋯ │ -1 │
*       └────┴────┴   ┴────┘
**********************************************

     
Icon Diagram
--------------------------------------------------------------------------------

*************************************************************************************************
*                                      .-.                           .--------.                 *
*                                   .-+   |                         |          |                *
*                               .--+       '--.                     |'--------'|                *
*                              |  Server Cloud |<------------------>| Database |                *
*                               '-------------'                     |          |                *
*                                   ^      ^                         '--------'                 *
*                    Internet       |      |                              ^                     *
*          .------------------------'      '-------------.                |                     *
*          |                                             |                v                     *
*          v                                             v              .------.       .------. *
*     .--------.      WiFi     .--------.  Bluetooth  .-----.          / #  # /|      / #  # /| *
*     |        |<------------->|        |<---------->|       |        +------+/| LAN +------+/| *
*     |Windows |               |  OS X  |            |  iOS  |        |      +/|<--->|      +/| *
*     +--------+               +--------+            |       |        |Ubuntu+/|     |Ubuntu+/| *
*    /// ____ \\\             /// ____ \\\           |   o   |        |      +/      |      +/  *
*   '------------'           '------------'           '-----'         '------'       '------'   *
*      Laptop 1                 Laptop 2              Tablet 1         Dedicated Server Rack    *
*************************************************************************************************


Styling Diagrams
------------------------------------------------------------------------------------

<style>
.md .inverse svg.diagram {
  background: #333;
  stroke: #FFF;
  fill: #FFF;
}

.md .inverse svg.diagram .opendot {
  fill: #333;
}
</style>

You can use CSS to style all diagrams or individual diagrams. For example,
the following has light lines on a dark background:

<div class="inverse">
 ****************************************************
 *  .---.              .         .----o----.        *
 *  |    |             |         |    |    |        *
 *  |    |  --.   |.-- |   |     *----*<---+        *
 *  |    |  .-.|  |    +--+      |    |____|        *
 *  |    | |   |  |    |   |     |    |    |        *
 *  '---'   '-''  '    '   '     o----o--->'        *
 ****************************************************
</div>


Horizontal Rules
========================================================================

Following the CommonMark specification, any of these patterns can be used (and extended across
a whole line, of course) to produce a horizontal rule:

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ none
-----

- - -

_____

_ _ _

*****

* * *
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Example:

-----

- - -

_____

_ _ _

*****

* * *

Embedded Math
========================

Markdeep automatically includes [MathJax](http://mathjax.org) if your
document contains equations and you have an Internet connection. That means
you get the **full power of LaTeX, TeX, MathML, and AsciiMath notation**.
Just put math inside single or double dollar signs. 

$$ \Lo(X, \wo) = \Le(X, \wo) + \int_\Omega \Li(X, \wi) ~ f_X(\wi, \wo) ~ | \n \cdot \wi | ~ d\wi $$

You can also use LaTeX equation syntax directly to obtain numbered
equations:

\begin{equation}
e^{i \pi} + 1 = 0
\end{equation}

\begin{equation}
\mathbf{A}^{-1}\vec{b} = \vec{x}
\end{equation}

If you don't have equations in your document, then Markdeep won't
connect to the MathJax server. Either way, it runs MathJax after 
processing the rest of the document, so there is no delay.

Markdeep is smart enough to distinguish non-math use of dollar signs,
such as $2.00 and $4.00, US$5, and 3$. Inline
math requires consistent spaces (or punctuation) either outside or inside
of the LaTeX dollar signs to distinguish them from
regular text usage. Thus, the following all work:

- $x^2$
- $ x^2 $
- ($x^2$)
- ($ x^2 $)
- Variable $x^2$,
- Variable $ x^2 $
- Two $x$ vars $y$ on the same line
- Different spacing styles: $\theta_{x}$ vs. $ \theta_{y} $

Unless you've changed out the default MathJax processor, you can define 
your own LaTeX macros by executing `\newcommand` within dollar signs,
just as you would in LaTeX.  Markdeep provides a handful of commands
defined this way by default because they're things that I frequently 
need:

   Code            |   Symbol
-------------------|------------
 `\O(n)`           |  $\O(n)$
 `\mathbf{M}^\T`   |  $\mathbf{M}^\T$
 `45\degrees`      |  $45\degrees$
 `x \in \Real`     |  $x \in \Real$
 `x \in \Integer`  |  $x \in \Integer$
 `x \in \Boolean`  |  $x \in \Boolean$
 `x \in \Complex`  |  $x \in \Complex$
 `\n`              |  $\n$
 `\w`              |  $\w$
 `\wo`             |  $\wo$
 `\wi`             |  $\wi$
 `\wh`             |  $\wh$
 `\Li`             |  $\Li$
 `\Lo`             |  $\Lo$
 `\Lr`             |  $\Lr$
 `\Le`             |  $\Le$
 `10\un{m/s^2}`    |  $10\un{m/s^2}$


# ATX Headers
In addition to the underlined headers, you can also use ATX-style
headers, with multiple # signs:

## H2
### H3
#### H4
##### H5
###### H6
Although: do you really need six levels of subsection nesting?!

You can also create unnumbered sections that will not appear in the
table of contents using parentheses around the pound signs:

(##) Unnumbered H2


Multiple Columns
========================================================================
<div style="columns:2;-webkit-columns:2;-moz-columns:2;column-gap:3em;-webkit-column-gap:3em;-moz-column-gap:3em">
You can use the CSS
[columns](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Columns/Using_multi-column_layouts)
style to make an HTML multicolumn block. Then, just use regular Markdeep within it and the
browser will automatically apply your multicolumn layout. 

Browsers are even smart enough to break the columns correctly when
printing to PDF or to a printer. However, for a long document,
multiple columns don't work well when displayed on screen. That's
because there are no discrete "pages" on screen to break columns. So,
the browser will make each column as long as the entire document,
which is probably not what you want.

So, multi-column only works well if you know that you have very short
sections (as in this example), or if you were planning on printing to
separate pages when done.
</div>


Custom Formatting
=========================================================================

Manual
-------------------------------------------------------------------------

Markdeep uses CSS for styling. That means you can embed a style sheet
to override anything thatn you don't like about the built-in styling.
For example, if you don't want section numbering, just use:

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<style>h1:before, h2:before { content: none; }</style>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Markdeep uses Markdown's syntax, even where I disagree with the
choices.  But you aren't stuck with that. Do you wish that Markdown
had specified single-asterisk for `*bold*`? You can have
that:

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
&lt;style&gt;em.asterisk { font-style: normal; font-weight: bold; }&lt;/style&gt;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Each of the list bullets (`+`, `-`, `*`) has its own CSS class. You
can use this, for example, to make `+` entries bold and `-` ones
use a circle:

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
&lt;style&gt;
  li.plus { font-weight: bold; } 
  li.minus { list-style-type: circle;}
&lt;/style&gt;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


Style Sheets
------------------------------------------------------------------------

### Latex Article

To match the default Latex article formatting, insert the following anywhere in your document:

<pre class="listing tilde">
&lt;<span>link</span> rel="stylesheet" href="https://casual-effects.com/markdeep/latest/latex.css?"&gt;
</pre>

### Dark 

For an aggressively-stylized document with a black background, insert the following anywhere in
your document:

<pre class="listing tilde">
&lt;<span>link</span> rel="stylesheet" href="https://casual-effects.com/markdeep/latest/dark.css?"&gt;
</pre>

### API Documentation

To use the API documentation template, insert the following anywhere in
your document:

<pre class="listing tilde">
&lt;<span>link</span> rel="stylesheet" href="https://casual-effects.com/markdeep/latest/apidoc.css?"&gt;
</pre>

### Presentation Slides

To create presentation slides as a PDF, insert the following into
your document, using first-level headers for sections and second-level
headers for slides:

<pre class="listing tilde">
&lt;<span>link</span> rel="stylesheet" href="https://casual-effects.com/markdeep/latest/slides.css?"&gt;
</pre>

Then, print the document to PDF.


Paragraph Numbering
--------------------------------------------------

Academic article or book proofs often have line numbers so that reviewers and editors can refer
to specific passages. This doesn't make sense for a document in a browser because line breaks
change based on the reader's screen size. 

You can add _paragraph_ numbers to your Markdeep document by including the following HTML at
the bottom of your document. You can remove the `<style>` tag and place the code in a CSS file
as well.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ html
<style>
p::before {
  content: "" counter(paragraph);
  counter-increment: paragraph;
  margin-left: -50px;
  width: 50px;
  height: 0px;
  overflow: visible;
  font-size: 70%;
  display: block;
  color: #666;
}
</style>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~



Localization
===================================================

There are two ways to localize the keywords such as Table, Diagram,
Monday, etc., from English to your favorite language. 

The first is to
put a meta tag with a
[`lang`](http://www.iana.org/assignments/language-subtag-registry/language-subtag-registry)
attribute in the document, such as <`meta lang="ru"
charset="utf-8"`>. If your favorite language isn't supported by
Markdeep, just e-mail me a Javascript snippet with the appropriate
translations and I'll add it (see the source code for examples).

The second method is to manually set the `markdeepOptions.lang` field
before you include the script in your document.


Unicode (in UTF-8 encoding)
===================================================

To support Unicode input, you must add <`meta charset="utf-8"`> to
the *top* of your document (in the first 512 bytes).

- Asian characters 林花謝了春紅 太匆匆, 無奈朝來寒雨 晚來風 胭脂淚 留人醉 幾時重, 自是人生長恨 水長東
- Asian punctuation: 、。!,:
- Matching pairs «»‹›“”‘’〖〗【】「」『』〈〉《》〔〕
- Greek ΑΒΓΔ ΕΖΗΘ ΙΚΛΜ ΝΞΟΠ ΡΣΤΥ ΦΧΨΩ αβγδ εζηθ ικλμ νξοπ ρςτυ φχψω
- Currency  ¤ $ ¢ € ₠ £ ¥
- Common symbols © ® ™ ² ³ § ¶ † ‡ ※
- Bullets •◦ ‣ ✓ ●■◆ ○□◇ ★☆ ♠♣♥♦ ♤♧♡♢
- Phonetic ᴁ ᴂ ᴈ
- Music ♩♪♫♬♭♮♯
- Punctuation “” ‘’ ¿¡ ¶§ª - ‐ ‑ ‒ – — ― …
- Accents àáâãäåæç èéêë ìíîï ðñòóôõö øùúûüýþÿ ÀÁÂÃÄÅ Ç ÈÉÊË ÌÍÎÏ ÐÑ ÒÓÔÕÖ ØÙÚÛÜÝÞß 
- Math ° ⌈⌉ ⌊⌋ ∏ ∑ ∫ ×÷ ⊕ ⊖ ⊗ ⊘ ⊙ ⊚ ⊛ ∙ ∘ ′ ″ ‴ ∼ ∂ √ ≔ × ⁱ ⁰ ¹ ² ³ ₀ ₁ ₂ π ∞ ± ∎
- Logic & Set Theory ∀¬∧∨∃⊦∵∴∅∈∉⊂⊃⊆⊇⊄⋂⋃
- Relations ≠≤≥≮≯≫≪≈≡
- Sets ℕℤℚℝℂ
- Arrows ←→↑↓ ↔ ↖↗↙↘  ⇐⇒⇑⇓ ⇔⇗  ⇦⇨⇧⇩ ↞↠↟↡ ↺↻  ☞☜☝☟
- Computing ⌘ ⌥ ‸ ⇧ ⌤ ↑ ↓ → ← ⇞ ⇟ ↖ ↘ ⌫ ⌦ ⎋⏏ ↶↷ ◀▶▲▼ ◁▷△▽ ⇄ ⇤⇥ ↹ ↵↩⏎ ⌧ ⌨ ␣ ⌶ ⎗⎘⎙⎚ ⌚⌛ ✂✄ ✉✍
- Digits ➀➁➂➃➄➅➆➇➈➉
- Religious and cultural symbols ✝✚✡☥⎈☭☪☮☺☹☯☰☱☲☳☴☵☶☷
- Dingbats ❦☠☢☣☤♲♳⌬♨♿ ☉☼☾☽ ♀♂ ♔♕♖ ♗♘♙ ♚♛ ♜♝♞♟


Gravizo Support
===================================================

Markdeep diagrams have no dependency on third parties or the network 
(you can store the `markdeep.min.js` file locally on your machine!)
and look the same in your document as on screen in the final document.

If you need the full power of DOT/GraphViz automated layout graphs and
can accept a network and third party dependency, you can embed
[Gravizo](http://g.gravizo.com/) within a Markdeep document using either
direct Markdeep image syntax or an embedded HTML `img` tag:

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<img src='http://g.gravizo.com/svg?digraph G { A -> B -> C; A -> C; }'>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

<img src='http://g.gravizo.com/svg?digraph G { A -> B -> C; A -> C; }'>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
![](http://g.gravizo.com/svg?digraph G { A -> B -> C; A -> C; })
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

![](http://g.gravizo.com/svg?digraph G { A -> B -> C; A -> C; })


Markdeep also allows captions on Gravizo graphs and newlines within
the URL itself:

![Figure [graph]: A more complex graph example](http://g.gravizo.com/svg?
 digraph G {
   main -> parse -> execute;
   main -> init;
   main -> cleanup;
   execute -> make_string;
   execute -> printf
   init -> make_string;
   main -> printf;
   execute -> compare;
 })


Including/Inserting Other Documents
===================================================

Markdeep currently contains experimental (i.e., beta, may-not-be-supported-in-the-future)
support for including one document within another. This is convenient for bibliographies,
boilerplate footers and headers, and styling. The syntax is:

<center>`(insert otherdocument.md.html here)`</center>

The inserted document must be a standalone Markdeep document, including the Markdeep line.  It
can have any file extension, although `.html` is recommended and there **must** be a period
in the filename to disambiguate it versus arbitrary TODO-style notes.

The included document will be inserted inline, meaning that footnotes, figure numbering, and
other kinds of references will flow correctly. Recursive inclusion is allowed. All paths in an
included document are relative to the original document. That's undesirable, and a future
release may be able to make those paths absolute.

Here is an example of embedding `example.md.html` into `features.md.html`:

            (insert example.md.html here)


Differences from Other Markdown
===================================================

Features
---------------------------------------------------

There are many, inconsistent markdown variants. Markdeep intentionally differs from a few of
them in specific ways:

- Code blocks require fences; no indent-only code blocks. I think that allowing indentation to
  indicate code blocks was a poor choice in the original markdown specification because code
  vs. blockquote is ambiguous in plain text and it makes list detection harder.
  
- Two trailing whitespace characters do not force a hard newline. Use `<br>` or regular
  paragraph breaks if you need a hard newline. The original markdown specification on this
  point violates its golden rule that the input look as much as possible like the output,
  and that rule also ends up requiring special code editors/syntax highlighting to see 
  invisible characters, which is bad design.
  
- No bold/italic/strikethrough inside of words without spaces because they could form an
  equation or technical term. Just use HTML tags.

- Setext headers require at least three minus or equals characters to distinguish from
  multiline equations

- Whitespace required between `#` and the section name for ATX headers (disambiguates "#1" from
  a header; required by CommonMark)

- Markdeep's table reference syntax differs from MultiMarkdown's in order to provide a
  consistent formatting syntax across sections, figures, and tables...and one for which the
  source text is more readable.
  
- Blockquotes must be two lines long (use explicit HTML if you really need a single-line
  blockquote) or contain quotation marks to disambiguate them from lines where a greater-than
  sign just wrapped around.
  
- Escaped characters such as `\*` and `\_` are not needed, since Markdeep heuristics for
  determining when those characters are part of text and not formatting.


Temporary Limitations
---------------------------------------------------

Future releases likely will address these known bugs, limitations, and
"missing features":

- Tables and diagrams in lists create a new list
- Listings have a maximum caption length of three lines


Permanent Limitations
---------------------------------------------------

Due to the special protection from formatting that Markdeep affords `<pre>` and `<code>` tags
that appear in the document, you cannot nest a code tag inside of another code tag, and
likewise for pre tags.  Fortunately, it is pretty hard to imagine a case where you would want
nested code tags.