git.iko.soy/typeable/pandoc
on master help sign in
Dokuwiki Reader fix: parse single curly brace (#5417)

fixes #5416

commit0fa6951dc15b162b7157739bb0787441aaf48014 authorMauro Bieg <mb21@users.noreply.github.com> dateMon 1 Apr 2019, 19:36 (8 years ago) parent0d1fc7d
2 files changed+12−1
src/Text/Pandoc/Readers/DokuWiki.hs+1−1 test/command/5416.md+11
src/Text/Pandoc/Readers/DokuWiki.hs+1−1
@@ -358,7 +358,7 @@ parseWidthHeight s = (width, height)
358358 _ -> Nothing
359359
360360image :: PandocMonad m => DWParser m B.Inlines
361−image = parseLink fromRaw "{{" "}}"
361+image = try $ parseLink fromRaw "{{" "}}"
362362 where
363363 fromRaw path description =
364364 if linkOnly
test/command/5416.mdnew file+11
@@ -0,0 +1,11 @@
1+```
2+% echo "{" | pandoc -f dokuwiki -t native
3+^D
4+[Para [Str "{"]]
5+```
6+
7+```
8+% echo "{{" | pandoc -f dokuwiki -t native
9+^D
10+[Para [Str "{{"]]
11+```