From b1fe6ca63ebc0e8ee11879e7052a0440c02488d1 Mon Sep 17 00:00:00 2001 From: Samuel Helms Date: Sun, 3 Feb 2019 10:20:19 -0500 Subject: [PATCH] allows annotation in markdown language block headers (matches the behavior in vscode) --- src/markdown/markdown.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/markdown/markdown.ts b/src/markdown/markdown.ts index 79cbadf4..4b0653a8 100644 --- a/src/markdown/markdown.ts +++ b/src/markdown/markdown.ts @@ -79,7 +79,7 @@ export const language = { [/^\s*~~~\s*((?:\w|[\/\-#])+)?\s*$/, { token: 'string', next: '@codeblock' }], // github style code blocks (with backticks and language) - [/^\s*```\s*((?:\w|[\/\-#])+)\s*$/, { token: 'string', next: '@codeblockgh', nextEmbedded: '$1' }], + [/^\s*```\s*((?:\w|[\/\-#])+).*$/, { token: 'string', next: '@codeblockgh', nextEmbedded: '$1' }], // github style code blocks (with backticks but no language) [/^\s*```\s*$/, { token: 'string', next: '@codeblock' }],