use string concat and rename escape trick to signal that it creates a code block, #10939

This commit is contained in:
Johannes Rieken
2016-08-25 16:57:52 +02:00
parent dd5d2f00e2
commit 31d1692155
4 changed files with 23 additions and 16 deletions

View File

@@ -67,7 +67,7 @@ function markedStringEqual(a:MarkedString, b:MarkedString): boolean {
);
}
export function textToMarkedString(text: string) : MarkedString {
export function textAsCodeBlock(text: string) : MarkedString {
return { language: 'string', value: text };
}