microsoft / vscode-markdown-tm-grammar

VS Code built-in markdown extension's Textmate grammar
MIT License
63 stars 50 forks source link

Inline code blocks broken over multiple lines are not highlighted correctly. #144

Closed a-stewart closed 1 year ago

a-stewart commented 1 year ago

The following code is valid markdown (at least on github and VS Code previews)

Run the command `myCommand
--help` for more infomation.

It looks as follows:

Run the command myCommand --help for more infomation.

The same is also true for bold and italics. However, the syntax highlighting in VS Code does not seem to support line breaks in these situations.

image

The preview on the right shows VS Codes markdown rendering will preview them correctly, but as shown on the left, it won't highlight them as expected.

mjbvz commented 1 year ago

Duplicate of #36