mirror of
https://github.com/usememos/memos.git
synced 2025-06-05 22:09:59 +02:00
chore: fix math block matcher
This commit is contained in:
@ -21,6 +21,12 @@ func TestMathBlockParser(t *testing.T) {
|
||||
Content: "(1+x)^2",
|
||||
},
|
||||
},
|
||||
{
|
||||
text: "$$\na=3\n$$",
|
||||
link: &ast.MathBlock{
|
||||
Content: "a=3",
|
||||
},
|
||||
},
|
||||
}
|
||||
for _, test := range tests {
|
||||
tokens := tokenizer.Tokenize(test.text)
|
||||
|
Reference in New Issue
Block a user