From 1519c880ce9b0f8d1f3a26f0db14f33cf69a0680 Mon Sep 17 00:00:00 2001 From: Stephen Tse Date: Sat, 19 Apr 2025 16:26:35 -0700 Subject: [PATCH] OK prettier that's enough --- quartz/plugins/transformers/ofm.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/quartz/plugins/transformers/ofm.ts b/quartz/plugins/transformers/ofm.ts index 8592fad38..9fea3447e 100644 --- a/quartz/plugins/transformers/ofm.ts +++ b/quartz/plugins/transformers/ofm.ts @@ -138,7 +138,9 @@ export const tableWikilinkRegex = new RegExp(/(!?\[\[[^\]]*?\]\]|\[\^[^\]]*?\])/ // * ==$$A == B AND B == C$$ and $$B == C AND C == D$$== // * ==$A == B AND B == C$ and $B == C AND C == D$== // * ==`A == B && B == C` and `B == C && C == D`== -const highlightRegex = new RegExp(/(?)((?:.*?\${1,2}[^$]*?==[^$]*?\${1,2}.*?)*?|(?:.*?`[^`]*?==[^`]*?`.*?)*?|.+?)(?)/g) +const highlightRegex = new RegExp( + /(?)((?:.*?\${1,2}[^$]*?==[^$]*?\${1,2}.*?)*?|(?:.*?`[^`]*?==[^`]*?`.*?)*?|.+?)(?)/g, +) const commentRegex = new RegExp(/%%[\s\S]*?%%/g) // from https://github.com/escwxyz/remark-obsidian-callout/blob/main/src/index.ts const calloutRegex = new RegExp(/^\[\!([\w-]+)\|?(.+?)?\]([+-]?)/)