showdown/docs/spec-compliance.md
Estevão Soares dos Santos fb31f631e9 improve commonmark compliance
2022-04-28 08:38:48 +01:00

35 lines
444 B
Markdown

# 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>
```