mirror of
https://github.com/usememos/memos.git
synced 2025-06-05 22:09:59 +02:00
chore: implement part of html renderer
This commit is contained in:
@ -39,6 +39,7 @@ func TestLinkParser(t *testing.T) {
|
||||
}
|
||||
for _, test := range tests {
|
||||
tokens := tokenizer.Tokenize(test.text)
|
||||
require.Equal(t, test.link, NewLinkParser().Parse(tokens))
|
||||
node, _ := NewLinkParser().Parse(tokens)
|
||||
require.Equal(t, StringifyNodes([]ast.Node{test.link}), StringifyNodes([]ast.Node{node}))
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user