mirror of
https://github.com/usememos/memos.git
synced 2024-12-26 15:13:10 +08:00
chore: fix horizontal rule matcher
This commit is contained in:
parent
5449342016
commit
32d02ba022
1 changed files with 1 additions and 4 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue