浏览代码

Merge pull request #61 from samghelms/master

allows annotation in markdown language block headers
Alexandru Dima 6 年之前
父节点
当前提交
125ea00813
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/markdown/markdown.ts

+ 1 - 1
src/markdown/markdown.ts

@@ -79,7 +79,7 @@ export const language = <ILanguage>{
 			[/^\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' }],