chore: handle newline in block parsers

This commit is contained in:
Steven
2023-12-14 22:55:46 +08:00
parent e0290b94b4
commit 6763dab4e5
4 changed files with 13 additions and 3 deletions

View File

@@ -20,6 +20,12 @@ func TestHorizontalRuleParser(t *testing.T) {
Symbol: "-",
},
},
{
text: "---\naaa",
horizontalRule: &ast.HorizontalRule{
Symbol: "-",
},
},
{
text: "****",
horizontalRule: nil,