multimarkdownjs
Emscripten port of MultiMarkdown-6
View on GitHub
Download .zip
Download .tar.gz
Demo
{{TOC}} # Text This text is **bold**. This text is also __bold__. This text is *italicized*. This itext is also _italicized_. `This is some code.` This is a longer section of code on multiple lines. m^2 x^2,y^ x~z C~6~H~12~O~6 Escaped characters -- \& "smart quotes" 'smart quotes' apostrophe's en -- dash em --- dash ellipsis ... # Abbreviations HTML and HTML [>HTML]: Hypertext Markup Language [>(HTML) Hypertext Markup Language] and HTML # Blockquotes Regular text. > Blockquote > with two lines. And one more line. >> And a second level blockquote. # Critic markup This {++is ++}a test. This is {--is --}a test. This {~~isn't~>is~~} a test. This is a {==test==}. This is a test.{>>What is it a test of?<<} # Definition lists Apple : Pomaceous fruit of plants of the genus Malus in the family Rosaceae. Also the makers of really great products. # Fenced code blocks ``` This is a fenced code block. ``` ```perl # Demonstrate Syntax Highlighting if you link to highlight.js # # http://softwaremaniacs.org/soft/highlight/en/ print "Hello, world!\n"; $a = 0; while ($a < 10) { print "$a...\n"; $a++; } ``` # Headings # H1 Header ## H2 Header ## # Header with custom id [custom] H1 Header ========= H2 Header --------- # Horizontal rules --- - - - **** * * * * * * ______ _ _ _ _ # Line breaks foo bar foo bar foo\ bar # Links Link to [MMD](http://fletcherpenney.net/mmd) Link to [MultiMarkdown][MMD1]. [MMD1]: http://fletcherpenney.net/mmd Link to [MMD2][]. [MMD2]: http://fletcherpenney.net/mmd Link to [MMD3]. [MMD3]: http://fletcherpenney.net/mmd Link to [MMD4]. [MMD4]: http://fletcherpenney.net/mmd style="border: solid black 1px;" Link to
Citations
Cite a source.[p. 42][#source] [#source]: John Doe. *A Totally Fake Book*. Vanity Press, 2006. Cite a source.[p. 42][#John Doe. *A Totally Fake Book, Part 2*. Vanity Press, 2008.]
Cross references
# Intro # # Conclusion [fin] # Link to [Intro]. Link to the [end][fin].
Foot notes
Text.[^foot] [^foot]: This is a footnote. Text.[^This is an inline footnote.]
Glossary
[?Glossary] is a glossary term. [?Glossary]: The glossary collects information about important terms used in your documemnt. [?(Glossary) The glossary collects information about important terms used in your documemnt] is a glossary term.
HTML Blocks
*bar*
*bar*
foo
*bar*
*bar*
*bar*
*bar*
*bar*
foo
*bar*
*bar*
*bar*
Images
Image - ![image](https://i.imgur.com/sZlktY7.png) Image with title - ![image](https://i.imgur.com/sZlktY7.png "This is a title") Image with attributes - ![image]. [image]: https://i.imgur.com/sZlktY7.png "This is a title" height=22px width=60px Image by itself becomes a figure. ![This is the caption][image] [image]: https://i.imgur.com/sZlktY7.png "This is the title" height=45px width=120px
Lists
* one * two * a * c * d * b * three 1. one 2. two 1. a 1. c 2. d 2. b 3. three
Math
A formula, \\({e}^{i\pi }+1=0\\), inside a paragraph. A formula, ${e}^{i\pi }+1=0$, inside a paragraph. \\[{e}^{i\pi }+1=0\\] \[{e}^{i\pi }+1=0\] $${e}^{i\pi }+1=0$$
Table of contents
# Table of Contents # {{TOC}} # Intro # # Conclusion #
Tables
| foo | bar | | --- | --- | | foo | bar | | foo bar || [*caption*][id] | longer header | longer header| longer header | | ---: | :---: | :--- | | foo | bar | bat | | foo | bar | bat | [*caption*][id]