Hash :
fb6e3e4b
Author :
Date :
2015-01-07T20:50:48
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
<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>Code</h2>
<pre><code>Inline code between backticks `<p>Paragraph</p>`
some_code(); /* Indented
with four spaces */
some_code(); /* Indented
with a tab */
</code></pre>
<h2>Raw HTML</h2>
<pre><code>> This is a quotation
> Containing <strong>raw HTML</strong>
<p>*Italic text inside HTML tag*</p></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>Nesting of elements is not fully supported</h3>
<pre><code>_ **bold** inside italic DOESN'T work _
__ but *italic* inside bold DOES work __
[Link partially *italic* DOESN'T work](http://example.com)
_ [But link inside italic DOES work](http://example.com) _
[Link partially **bold** DOESN'T work](http://example.com)
__ [But link inside bold DOES work](http://example.com) __</code></pre>
<h3>Markdown-like HTML attribute</h3>
<pre><code><p class="_test_"></p></code></pre>