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

Make space after ``` customizable #219

Closed
phst opened this issue Jul 2, 2017 · 2 comments
Closed

Make space after ``` customizable #219

phst opened this issue Jul 2, 2017 · 2 comments

Comments

@phst
Copy link
Contributor

phst commented Jul 2, 2017

59a4986 introduced a space after ```, which is valid but uncommon (e.g. https://guides.github.com/features/mastering-markdown/#GitHub-flavored-markdown) doesn't have it. Would be great if this behavior were customizable.

@cjsut
Copy link

cjsut commented Jul 5, 2017

Additionally, the CommonMark specification allows arbitrary meta-data after the opening code fence:

The first word of the info string is typically used to specify the language of
the code sample ... However, this spec does not mandate any particular
treatment of the info string.

I personally use this to specify how a particular block of code should be rendered, for example ("this code block is erroneous" or "this code block is pretty okay").

A minor change to markdown-regex-gfm-code-block-open allows specification of metadata after the language without de-fontifying the entire code block, but better coloring and fontification of the metadata would be nice.

@jrblevin
Copy link
Owner

jrblevin commented Jul 5, 2017

The development version (and possibly earlier ones to some extent) supports such arbitrary "info strings".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants