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

444 B

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:

    # 
    

    Showdown Output:

    <p>#</p>
    

    Commonmark output:

    <h1></h1>