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:
@ -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 {
|
||||
|
Reference in New Issue
Block a user