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
<h1>Markdown</h1>
<p>To use this language, use the class "language-markdown".</p>
<h2>Titles</h2>
<pre><code>Title 1
==
Title 2
-------
# Title 1
## Title 2
### Title 3
#### Title 4
##### Title 5
###### Title 6
</code></pre>
<h2>Bold and italic</h2>
<pre><code>*Italic*
**Bold on
multiple lines**
*Italic on
multiple lines too*
__It also works with underscores__
_It also works with underscores_
__An empty line
is not allowed__
</code></pre>
<h2>Links</h2>
<pre><code>[Prism](http://www.prismjs.com)
[Prism](http://www.prismjs.com "Prism")
[prism link]: http://www.prismjs.com (Prism)
[Prism] [prism link]
</code></pre>
<h2>Lists and quotes</h2>
<pre><code>* This is
* an unordered list
1. This is an
2. ordered list
* *List item in italic*
* **List item in bold**
* [List item as a link](http://example.com "This is an example")
> This is a quotation
>> With another quotation inside
> _italic here_, __bold there__
> And a [link](http://example.com)
</code></pre>
<h2>Known failures</h2>
<p>There are certain edge cases where Prism will fail.
There are always such cases in every regex-based syntax highlighter.
However, Prism dares to be open and honest about them.
If a failure is listed here, it doesn’t mean it will never be fixed. This is more of a “known bugs” list, just with a certain type of bug.
</p>
<h3>Nested elements</h3>
<pre><code>_ **bold** inside italic _
__ *italic* inside bold __
__ [Bold link?](http://example.com) __
[Link in *italic*](http://example.com)</code></pre>