mirror of
https://github.com/usememos/memos.git
synced 2025-06-05 22:09:59 +02:00
chore: handle newline in block parsers
This commit is contained in:
@@ -26,7 +26,10 @@ func (*HorizontalRuleParser) Match(tokens []*tokenizer.Token) (int, bool) {
|
||||
if len(tokens) > 3 && tokens[3].Type != tokenizer.Newline {
|
||||
return 0, false
|
||||
}
|
||||
return 3, true
|
||||
if len(tokens) == 3 {
|
||||
return 3, true
|
||||
}
|
||||
return 4, true
|
||||
}
|
||||
|
||||
func (p *HorizontalRuleParser) Parse(tokens []*tokenizer.Token) (ast.Node, error) {
|
||||
|
Reference in New Issue
Block a user