diff options
Diffstat (limited to 'inline_parser.go')
| -rw-r--r-- | inline_parser.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/inline_parser.go b/inline_parser.go index 621c21e..0e280d7 100644 --- a/inline_parser.go +++ b/inline_parser.go @@ -689,6 +689,13 @@ func parseInlineImage(doc *Document, content []byte) (elImage *element, n int) { lineImage []byte ) + // If the next character is ':' (as in block "image::") mark it as + // invalid inline image, since this is block image that has been + // parsed but invalid (probably missing '[]'). + if content[0] == ':' { + return nil, 0 + } + _, n = indexByteUnescape(content, ']') if n < 0 { return nil, 0 |
