showdown/docs/spec-compliance.md

35 lines
444 B
Markdown
Raw Permalink Normal View History

2022-04-28 15:38:48 +08:00
# Spec Compliance
## Commonmark
Compliance percentage:
### How to enable commonmark flavor
Enable Commonmark flavor
```
let converter = new showdown.Converter();
converter.setFlavor('commonmark');
```
### Known differences:
#### ATX Headings
- Showdown doesn't support empty headings
Input:
```md
#
```
Showdown Output:
```html
<p>#</p>
```
Commonmark output:
```
<h1></h1>
```