mirror of
https://github.com/showdownjs/showdown.git
synced 2024-03-22 13:30:55 +08:00
1f0242c6ea
One or more spaces before the language declaration of a code block is supported by Github. E.g. ``` html <div>HTML!</div> ``` ``` html <div>HTML!</div> ``` ```html <div>HTML!</div> ``` Closes #569
20 lines
493 B
HTML
20 lines
493 B
HTML
<p>Define a function in javascript:</p>
|
|
<pre><code>function MyFunc(a) {
|
|
var s = '`';
|
|
}
|
|
</code></pre>
|
|
<p>And some HTML</p>
|
|
<pre><code class="html language-html"><div>HTML!</div>
|
|
</code></pre>
|
|
<p>And some CSS with spaces before the language declaration</p>
|
|
<pre><code class="css language-css">body {
|
|
font-size: 1.5em;
|
|
}
|
|
</code></pre>
|
|
<p>Use more than 3 backticks</p>
|
|
<pre><code>some code
|
|
</code></pre>
|
|
<p>Use tilde as delimiter</p>
|
|
<pre><code>another piece of code
|
|
</code></pre>
|