mirror of
https://github.com/jackyzha0/quartz.git
synced 2025-12-26 22:34:06 -06:00
OK prettier that's enough
This commit is contained in:
parent
4b4a5556bb
commit
1519c880ce
@ -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 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`==
|
// * ==`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)
|
const commentRegex = new RegExp(/%%[\s\S]*?%%/g)
|
||||||
// from https://github.com/escwxyz/remark-obsidian-callout/blob/main/src/index.ts
|
// from https://github.com/escwxyz/remark-obsidian-callout/blob/main/src/index.ts
|
||||||
const calloutRegex = new RegExp(/^\[\!([\w-]+)\|?(.+?)?\]([+-]?)/)
|
const calloutRegex = new RegExp(/^\[\!([\w-]+)\|?(.+?)?\]([+-]?)/)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user