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 Incorrect Colorization of Fenced Code Blocks #17787

Closed
azu opened this issue Dec 24, 2016 · 1 comment
Closed

Markdown Incorrect Colorization of Fenced Code Blocks #17787

azu opened this issue Dec 24, 2016 · 1 comment
Assignees
Labels
*duplicate Issue identified as a duplicate of another issue(s) markdown Markdown support issues

Comments

@azu
Copy link

azu commented Dec 24, 2016

  • VSCode Version: Code 1.8.1 (ee428b0, 2016-12-19T14:42:49.304Z)
  • OS Version: Darwin x64 15.6.0

Put some text before fenced Code Blocks and break syntax highlight of code block.

OK:

# Arbitrary Piece of code

```c
#include <stdio.h>

int main(void)
{
    puts("hello world");
    return 0;
}
```

test md - vscode-textlint-example 2016-12-24 11-54-29

NG:

# Arbitrary Piece of code

text <= break syntax highlight
```c
#include <stdio.h>

int main(void)
{
    puts("hello world");
    return 0;
}
```

test md - vscode-textlint-example 2016-12-24 11-53-37

This case is CommonMark spec's Example 108.

Other blocks can also occur before and after fenced code blocks without an intervening blank line:
http://spec.commonmark.org/0.26/#example-108

@egamma egamma added the markdown Markdown support issues label Dec 24, 2016
@mjbvz mjbvz added the *duplicate Issue identified as a duplicate of another issue(s) label Dec 29, 2016
@mjbvz
Copy link
Collaborator

mjbvz commented Dec 29, 2016

Closing as duplicate of #12946

@mjbvz mjbvz closed this as completed Dec 29, 2016
@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 18, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
*duplicate Issue identified as a duplicate of another issue(s) markdown Markdown support issues
Projects
None yet
Development

No branches or pull requests

3 participants