diff options
| author | Anhgelus Morhtuuzh <william@herges.fr> | 2025-10-02 12:03:06 +0200 |
|---|---|---|
| committer | Anhgelus Morhtuuzh <william@herges.fr> | 2025-10-02 12:03:15 +0200 |
| commit | cdb0a541554aa4a16fc71b6425225e8c603c83b8 (patch) | |
| tree | 283fb876c55647235c2990cc42ed04e199f448f1 /mardown/ast_modifier.go | |
| parent | c176f81dc60d558edfe626ac805a0173c12f317d (diff) | |
feat(markdown): support external link and image (without source)
Diffstat (limited to 'mardown/ast_modifier.go')
| -rw-r--r-- | mardown/ast_modifier.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/mardown/ast_modifier.go b/mardown/ast_modifier.go index 13cd91d..bd04b28 100644 --- a/mardown/ast_modifier.go +++ b/mardown/ast_modifier.go @@ -117,6 +117,12 @@ func modifier(lxs *lexers) (*astModifier, error) { case lexerExternal: if lxs.Current().Value == "!" { s += lxs.Current().Value + } else { + ext, err := external(lxs) + if err != nil { + return nil, err + } + mod.content = append(mod.content, ext) } default: return nil, ErrInvalidTypeInModifier |
