showdown/test/functional/makehtml/cases/standard/github-style-codeblock.md
Lee Moody 1f0242c6ea fix(gfm-codeblock): add support for spaces before language declaration
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
2018-08-08 01:25:32 +01:00

35 lines
338 B
Markdown

Define a function in javascript:
```
function MyFunc(a) {
var s = '`';
}
```
And some HTML
```html
<div>HTML!</div>
```
And some CSS with spaces before the language declaration
``` css
body {
font-size: 1.5em;
}
```
Use more than 3 backticks
`````
some code
`````
Use tilde as delimiter
~~~
another piece of code
~~~