git.iko.soy/typeable/pandoc
on master help sign in
Textile reader: skip over attribute in image source.

We don't have a place yet for styles or sizes on images, but we can skip the attributes rather than incorrectly taking them to be part of the filename. Closes #2515.

commit469338a2721bdcbf927d2344ba012f0ca76614a5 authorJohn MacFarlane <jgm@berkeley.edu> dateMon 16 Nov 2015, 20:43 (11 years ago) parentf096f03
1 file changed+1
src/Text/Pandoc/Readers/Textile.hs+1
src/Text/Pandoc/Readers/Textile.hs+1
@@ -535,6 +535,7 @@ link = try $ do
535535image :: Parser [Char] ParserState Inlines
536536image = try $ do
537537 char '!' >> notFollowedBy space
538+ _ <- attributes -- ignore for now, until we have image attributes
538539 src <- manyTill anyChar' (lookAhead $ oneOf "!(")
539540 alt <- option "" (try $ (char '(' >> manyTill anyChar' (char ')')))
540541 char '!'