From 7b2b9d312791fcf6f49a350f6887a2019d2730f7 Mon Sep 17 00:00:00 2001 From: Anhgelus Morhtuuzh Date: Tue, 30 Sep 2025 22:35:31 +0200 Subject: feat(markdown): quote --- mardown/ast_paragraph.go | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'mardown/ast_paragraph.go') diff --git a/mardown/ast_paragraph.go b/mardown/ast_paragraph.go index 24b7057..6149c30 100644 --- a/mardown/ast_paragraph.go +++ b/mardown/ast_paragraph.go @@ -44,21 +44,24 @@ func paragraph(lxs *lexers, oneLine bool) (*astParagraph, error) { switch lxs.Current().Type { case lexerBreak: n++ - case lexerLiteral, lexerHeader: + case lexerLiteral, lexerHeader, lexerQuote: + n = 0 tree.content = append(tree.content, astLiteral(lxs.Current().Value)) case lexerModifier: + n = 0 mod, err := modifier(lxs) if err != nil { return nil, err } tree.content = append(tree.content, mod) - case lexerQuote: - //TODO: handle case lexerEscape: + n = 0 //TODO: handle case lexerExternal: + n = 0 //TODO: handle case lexerCode: + n = 0 if len(lxs.Current().Value) == 3 { if n == 0 { return nil, ErrInvalidCodeBlockPosition -- cgit v1.2.3