From 050eb871777b666ab506b0c65ce237c27852a64c Mon Sep 17 00:00:00 2001 From: Adam DeHaven Date: Fri, 15 Dec 2023 23:43:56 -0500 Subject: [PATCH] fix: line highlighting --- src/composables/useMarkdownIt.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/composables/useMarkdownIt.ts b/src/composables/useMarkdownIt.ts index 96b2f136..add22a14 100644 --- a/src/composables/useMarkdownIt.ts +++ b/src/composables/useMarkdownIt.ts @@ -45,9 +45,9 @@ export default function useMarkdownIt(theme: 'light' | 'dark' = 'light') { }) .use(abbreviation) .use(attrs, { - // optional, these are default options - leftDelimiter: '{', - rightDelimiter: '}', + // optional, these are default options + leftDelimiter: '{{', // Do not use single curly, it will conflict with code line syntax highlighting + rightDelimiter: '}}', // Do not use single curly, it will conflict with code line syntax highlighting allowedAttributes: ['id', 'class', 'style', 'target', 'rel', /^data.*$/], // allow-list }) .use(markdownItTextualUml)