Skip to content
This repository was archived by the owner on Sep 16, 2021. It is now read-only.
This repository was archived by the owner on Sep 16, 2021. It is now read-only.

Support tilde fenced code block delimiters #23

@mattt

Description

@mattt

Currently, ``` is hard-coded into a regular expression pattern as the only delimiters for fenced code blocks. However, according to the CommonMark Spec:

4.5 Fenced code blocks

A code fence is a sequence of at least three consecutive backtick characters (`) or tildes (~). (Tildes and backticks cannot be mixed.) A fenced code block begins with a code fence, indented no more than three spaces.

We should either update the regular expression pattern to support both tildes and backticks, or alternatively provide an option to specify which delimiter to use.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions