aboutsummaryrefslogtreecommitdiff
path: root/mardown/ast_paragraph.go
diff options
context:
space:
mode:
authorAnhgelus Morhtuuzh <william@herges.fr>2025-10-02 12:03:06 +0200
committerAnhgelus Morhtuuzh <william@herges.fr>2025-10-02 12:03:15 +0200
commitcdb0a541554aa4a16fc71b6425225e8c603c83b8 (patch)
tree283fb876c55647235c2990cc42ed04e199f448f1 /mardown/ast_paragraph.go
parentc176f81dc60d558edfe626ac805a0173c12f317d (diff)
feat(markdown): support external link and image (without source)
Diffstat (limited to 'mardown/ast_paragraph.go')
-rw-r--r--mardown/ast_paragraph.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/mardown/ast_paragraph.go b/mardown/ast_paragraph.go
index ee71794..44b5dd9 100644
--- a/mardown/ast_paragraph.go
+++ b/mardown/ast_paragraph.go
@@ -68,8 +68,13 @@ func paragraph(lxs *lexers, oneLine bool) (*astParagraph, error) {
n = 0
if lxs.Current().Value == "!" {
tree.content = append(tree.content, astLiteral(lxs.Current().Value))
+ } else {
+ ext, err := external(lxs)
+ if err != nil {
+ return nil, err
+ }
+ tree.content = append(tree.content, ext)
}
- //TODO: handle
case lexerCode:
n = 0
b, err := code(lxs)