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

Set font style for GFM-style code blocks in base markdown-mode, too. #2

Closed
wants to merge 1 commit into from
Closed

Conversation

sfreilich
Copy link
Contributor

Github Flavored Markdown isn't the only one that supports fenced-code blocks
annotated with a string controlling things like syntax highlighting. That's also
part of the Common Mark spec (http://spec.commonmark.org/0.20/#info-string).

There's room to be permissive here. The syntax for a GFM-style code block is
unlikely to show up in Markdown code in other contexts. And failing to do so
makes those code-blocks much harder to read in the source (e.g. because
Python comments are highlighted as headers and so on).

Github Flavored Markdown isn't the only one that supports fenced-code blocks
annotated with a string controlling things like syntax highlighting. That's also
part of the Common Mark spec (http://spec.commonmark.org/0.20/#info-string).

There's room to be permissive here. The syntax for a GFM-style code block is
unlikely to show up in Markdown code in other contexts. And failing to do so
makes those code-blocks much harder to read in the source (e.g. because
Python comments are highlighted as headers and so on).
@jrblevin
Copy link
Owner

Applied, thanks.

@jrblevin jrblevin closed this Jun 28, 2015
@sfreilich sfreilich deleted the fenced-code branch August 17, 2015 17:09
@snowman snowman mentioned this pull request Oct 29, 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

Successfully merging this pull request may close these issues.

2 participants