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
35 lines
338 B
Markdown
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
|
|
~~~
|