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

@ -197,6 +197,22 @@ func TestParser(t *testing.T) {
},
},
},
{
text: "\n\n",
nodes: []ast.Node{
&ast.LineBreak{},
&ast.LineBreak{},
},
},
{
text: "\n$$\na=3\n$$",
nodes: []ast.Node{
&ast.LineBreak{},
&ast.MathBlock{
Content: "a=3",
},
},
},
}
for _, test := range tests {