summaryrefslogtreecommitdiffstats
path: root/packages/markdown/marked/test/new/gfm_code.md
blob: 79d06b16cd62e56ab2c63e6d7645c8e1893b09a6 (plain)
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
``` js
var a = 'hello';
console.log(a + ' world');
```

~~~bash
echo "hello, ${WORLD}"
~~~

```````longfence
Q: What do you call a tall person who sells stolen goods?
```````

~~~~~~~~~~  ManyTildes
A longfence!
~~~~~~~~~~

How about an empty code block?

```js
```

How about a code block with only an empty line?

```js

```

With some trailing empty lines:

```
ciao


```

Closing fences must lay on a new line:

```
hello()
^```
"this should still be in the code block!"
```