aboutsummaryrefslogtreecommitdiff
path: root/markdown/ast_paragraph.go
diff options
context:
space:
mode:
Diffstat (limited to 'markdown/ast_paragraph.go')
-rw-r--r--markdown/ast_paragraph.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/markdown/ast_paragraph.go b/markdown/ast_paragraph.go
index 361b2f2..197c7e3 100644
--- a/markdown/ast_paragraph.go
+++ b/markdown/ast_paragraph.go
@@ -65,6 +65,10 @@ func paragraph(lxs *lexers, oneLine bool) (*astParagraph, *ParseError) {
}
tree.content = append(tree.content, mod)
case lexerExternal:
+ if n > 0 && lxs.Current().Value == "![" {
+ lxs.Before() // because we did not use it
+ return tree, nil
+ }
n = 0
if lxs.Current().Value == "!" {
tree.content = append(tree.content, astLiteral(lxs.Current().Value))