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' }],