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

[Markdown] Allow whitespace between opening fence and info string #1615

Closed
sharkdp opened this issue May 25, 2018 · 0 comments · Fixed by #1616
Closed

[Markdown] Allow whitespace between opening fence and info string #1615

sharkdp opened this issue May 25, 2018 · 0 comments · Fixed by #1616

Comments

@sharkdp
Copy link
Contributor

sharkdp commented May 25, 2018

The following Markdown code seems to be valid in (GitHub-flavored) Markdown:

``` ruby
def foo(x)
  return 3
end
```

(notice the space between the opening fence ``` and ruby). However, the code-block is currently not syntax-highlighted properly (the Ruby part).

Compare:
image

image

sharkdp added a commit to sharkdp/Packages that referenced this issue May 26, 2018
Allow for code blocks like

``` ruby
def foo(x)
  return 3
end
```

with whitespace between the opening fence and the 'ruby' keyword.

closes sublimehq#1615
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 a pull request may close this issue.

1 participant