Commit 32d02ba0 authored by Steven's avatar Steven

chore: fix horizontal rule matcher

parent 54493420
......@@ -26,10 +26,7 @@ func (*HorizontalRuleParser) Match(tokens []*tokenizer.Token) (int, bool) {
if len(tokens) > 3 && tokens[3].Type != tokenizer.Newline {
return 0, false
}
if len(tokens) == 3 {
return 3, true
}
return 4, true
}
func (p *HorizontalRuleParser) Parse(tokens []*tokenizer.Token) (ast.Node, error) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment