chore: fix math block matcher

This commit is contained in:
Steven
2024-01-04 21:50:13 +08:00
parent 9593b0b091
commit d7ed59581c
4 changed files with 24 additions and 2 deletions

View File

@ -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)