mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 20:52:56 +01:00
allows annotation in markdown language block headers (matches the behavior in vscode)
This commit is contained in:
parent
ec16c9c01a
commit
b1fe6ca63e
1 changed files with 1 additions and 1 deletions
|
|
@ -79,7 +79,7 @@ export const language = <ILanguage>{
|
||||||
[/^\s*~~~\s*((?:\w|[\/\-#])+)?\s*$/, { token: 'string', next: '@codeblock' }],
|
[/^\s*~~~\s*((?:\w|[\/\-#])+)?\s*$/, { token: 'string', next: '@codeblock' }],
|
||||||
|
|
||||||
// github style code blocks (with backticks and language)
|
// 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)
|
// github style code blocks (with backticks but no language)
|
||||||
[/^\s*```\s*$/, { token: 'string', next: '@codeblock' }],
|
[/^\s*```\s*$/, { token: 'string', next: '@codeblock' }],
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue