From 32d02ba022e6bdf1bbdaccd139abb0cae5ad36d2 Mon Sep 17 00:00:00 2001 From: Steven Date: Mon, 8 Jan 2024 21:00:45 +0800 Subject: [PATCH] chore: fix horizontal rule matcher --- plugin/gomark/parser/horizontal_rule.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/plugin/gomark/parser/horizontal_rule.go b/plugin/gomark/parser/horizontal_rule.go index 75d6c50a..369608c6 100644 --- a/plugin/gomark/parser/horizontal_rule.go +++ b/plugin/gomark/parser/horizontal_rule.go @@ -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 + return 3, true } func (p *HorizontalRuleParser) Parse(tokens []*tokenizer.Token) (ast.Node, error) {