aboutsummaryrefslogtreecommitdiff
path: root/mardown/ast_paragraph.go
diff options
context:
space:
mode:
authorAnhgelus Morhtuuzh <william@herges.fr>2025-09-30 22:35:31 +0200
committerAnhgelus Morhtuuzh <william@herges.fr>2025-09-30 22:35:31 +0200
commit7b2b9d312791fcf6f49a350f6887a2019d2730f7 (patch)
treef932a1f941c927e83fe144aa4d164996bd9db870 /mardown/ast_paragraph.go
parent0426dfc21a0808a25404d3f03d36d1ce4e2efde7 (diff)
feat(markdown): quote
Diffstat (limited to 'mardown/ast_paragraph.go')
-rw-r--r--mardown/ast_paragraph.go9
1 files changed, 6 insertions, 3 deletions
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