aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Readers
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2015-11-16 20:43:07 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2015-11-16 20:43:07 -0800
commit469338a2721bdcbf927d2344ba012f0ca76614a5 (patch)
tree85db1f281aece0ca9bf525160d2df5e52273f5d0 /src/Text/Pandoc/Readers
parentf096f032f0d210142d4f6de87354df65598cdafb (diff)
downloadpandoc-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.hs1
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 '!'