forked from markedjs/marked
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathgfm_code.html
More file actions
21 lines (17 loc) · 749 Bytes
/
gfm_code.html
File metadata and controls
21 lines (17 loc) · 749 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<pre><code class="language-js">var a = 'hello';
console.log(a + ' world');</code></pre>
<pre><code class="language-bash">echo "hello, ${WORLD}"</code></pre>
<pre><code class="language-longfence">Q: What do you call a tall person who sells stolen goods?</code></pre>
<pre><code class="language-ManyTildes">A longfence!</code></pre>
<p>How about an empty code block?</p>
<pre><code class="language-js"></code></pre>
<p>How about a code block with only an empty line?</p>
<pre><code class="language-js">
</code></pre>
<p>With some trailing empty lines:</p>
<pre><code>ciao
</code></pre>
<p>Closing fences must lay on a new line:</p>
<pre><code>hello()
^```
"this should still be in the code block!"</code></pre>