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

Support tilde fenced code block delimiters #23

Open
mattt opened this issue May 4, 2020 · 0 comments
Open

Support tilde fenced code block delimiters #23

mattt opened this issue May 4, 2020 · 0 comments
Labels
bug Something isn't working

Comments

@mattt
Copy link
Contributor

mattt commented May 4, 2020

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant