diff options
author | John MacFarlane <jgm@berkeley.edu> | 2015-11-16 20:43:07 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2015-11-16 20:43:07 -0800 |
commit | 469338a2721bdcbf927d2344ba012f0ca76614a5 (patch) | |
tree | 85db1f281aece0ca9bf525160d2df5e52273f5d0 /src/Text/Pandoc/Readers | |
parent | f096f032f0d210142d4f6de87354df65598cdafb (diff) | |
download | pandoc-469338a2721bdcbf927d2344ba012f0ca76614a5.tar.gz |
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.
Diffstat (limited to 'src/Text/Pandoc/Readers')
-rw-r--r-- | src/Text/Pandoc/Readers/Textile.hs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Text/Pandoc/Readers/Textile.hs b/src/Text/Pandoc/Readers/Textile.hs index b1bf463af..3db01faf4 100644 --- a/src/Text/Pandoc/Readers/Textile.hs +++ b/src/Text/Pandoc/Readers/Textile.hs @@ -535,6 +535,7 @@ link = try $ do image :: Parser [Char] ParserState Inlines image = try $ do char '!' >> notFollowedBy space + _ <- attributes -- ignore for now, until we have image attributes src <- manyTill anyChar' (lookAhead $ oneOf "!(") alt <- option "" (try $ (char '(' >> manyTill anyChar' (char ')'))) char '!' |