diff --git a/src/configuration/decoration.ts b/src/configuration/decoration.ts index 374f1caa..c67b3857 100644 --- a/src/configuration/decoration.ts +++ b/src/configuration/decoration.ts @@ -16,6 +16,16 @@ class DecorationImpl { private _markDecorationCache = new Map(); private _createMarkDecoration(name: string): vscode.TextEditorDecorationType { + const escape: Record = { + '<': '<', + '>': '>', + '&': '&', + '"': '"', + "'": ''', + }; + if (name in escape) { + name = escape[name]; + } const svg = [ '', '',