diff options
| author | Anhgelus Morhtuuzh <william@herges.fr> | 2025-09-30 20:55:02 +0200 |
|---|---|---|
| committer | Anhgelus Morhtuuzh <william@herges.fr> | 2025-09-30 20:55:02 +0200 |
| commit | e20acb05fd33b8fbcfafee4b72734224093c2d20 (patch) | |
| tree | 0939e74d0e7e3a8c01cf6b1fdbfa3a40be4a1936 /mardown/ast_paragraph.go | |
| parent | f5607e75f98d50dfd0496cfd5a76bc0d905403f7 (diff) | |
feat(markdown): ast supports modifier
Diffstat (limited to 'mardown/ast_paragraph.go')
| -rw-r--r-- | mardown/ast_paragraph.go | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/mardown/ast_paragraph.go b/mardown/ast_paragraph.go index 04f2086..3c8f985 100644 --- a/mardown/ast_paragraph.go +++ b/mardown/ast_paragraph.go @@ -47,7 +47,11 @@ func paragraph(lxs lexers, oneLine bool) (*astParagraph, error) { case lexerLiteral, lexerHeader: tree.content = append(tree.content, astLiteral(lxs.Current().Value)) case lexerModifier: - //TODO: handle + mod, err := modifier(lxs) + if err != nil { + return nil, err + } + tree.content = append(tree.content, mod) case lexerQuote: //TODO: handle case lexerEscape: @@ -62,7 +66,11 @@ func paragraph(lxs lexers, oneLine bool) (*astParagraph, error) { lxs.current-- // because we do not use it before the next return tree, nil } - //TODO: handle + mod, err := modifier(lxs) + if err != nil { + return nil, err + } + tree.content = append(tree.content, mod) } } return tree, nil |
