Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parse mixed-length code fences and whitespace #1

Closed
pjeby opened this issue Nov 5, 2017 · 0 comments
Closed

Parse mixed-length code fences and whitespace #1

pjeby opened this issue Nov 5, 2017 · 0 comments
Assignees

Comments

@pjeby
Copy link
Member

pjeby commented Nov 5, 2017

Commonmark allows code fences to have more than three backquotes or tildes, and to be prefixed by up to three spaces. While mdsh should still only respond to unindented blocks with exactly 3 backquotes, it should parse other types of code fences, ignoring triple-backquote lines inside them, and not be fooled by false block endings.

In other words, the parser should recognize and parse all types of Commonmark fenced code blocks, even if it only compiles the unindented triple-backquoted ones. (And whitespace at the start of the language tag should be stripped.)

@pjeby pjeby self-assigned this Nov 5, 2017
@pjeby pjeby closed this as completed in a7c9fe3 Nov 5, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant