mirror of
https://github.com/jackyzha0/quartz.git
synced 2025-12-27 06:44:07 -06:00
Fixed examples
This commit is contained in:
parent
1519c880ce
commit
5e5c607b80
@ -135,8 +135,8 @@ export const tableWikilinkRegex = new RegExp(/(!?\[\[[^\]]*?\]\]|\[\^[^\]]*?\])/
|
||||
// -> For LaTeX: (?:.*?\${1,2}[^$]*?==[^$]*?\${1,2}.*?)*?
|
||||
// -> For code blocks: (?:.*?`[^`]*?==[^`]*?`.*?)*?
|
||||
// Test Examples:
|
||||
// * ==$$A == B AND B == C$$ and $$B == C AND C == D$$==
|
||||
// * ==$A == B AND B == C$ and $B == C AND C == D$==
|
||||
// * ==$$A == B \land B == C$$ and $$B == C \land C == D$$==
|
||||
// * ==$A == B \land B == C$ and $B == C \land C == D$==
|
||||
// * ==`A == B && B == C` and `B == C && C == D`==
|
||||
const highlightRegex = new RegExp(
|
||||
/(?<!<)==(?!>)((?:.*?\${1,2}[^$]*?==[^$]*?\${1,2}.*?)*?|(?:.*?`[^`]*?==[^`]*?`.*?)*?|.+?)(?<!<)==(?!>)/g,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user