From 09673537e87671d9a15fce43e1606d37befe7378 Mon Sep 17 00:00:00 2001 From: Stephen Tse Date: Sat, 19 Apr 2025 21:07:11 -0700 Subject: [PATCH] Support multiline highlighting --- quartz/plugins/transformers/ofm.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/quartz/plugins/transformers/ofm.ts b/quartz/plugins/transformers/ofm.ts index d9347a8da..d3081b28d 100644 --- a/quartz/plugins/transformers/ofm.ts +++ b/quartz/plugins/transformers/ofm.ts @@ -137,7 +137,7 @@ for the following edge cases: * ==$A == B \land B == C$ and $B == C \land C == D$!== * ==`A == B && B == C` and `B == C && C == D`!== */ -const highlightRegex = new RegExp(/(?)(.+?)(?)/gm) +const highlightRegex = new RegExp(/(?)(.+?)(?)/gms) 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-]+)\|?(.+?)?\]([+-]?)/)