diff options
-rw-r--r-- | src/Text/Pandoc/Readers/DokuWiki.hs | 2 | ||||
-rw-r--r-- | test/command/5416.md | 11 |
2 files changed, 12 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Readers/DokuWiki.hs b/src/Text/Pandoc/Readers/DokuWiki.hs index 3652dd9f1..60d406df1 100644 --- a/src/Text/Pandoc/Readers/DokuWiki.hs +++ b/src/Text/Pandoc/Readers/DokuWiki.hs @@ -358,7 +358,7 @@ parseWidthHeight s = (width, height) _ -> Nothing image :: PandocMonad m => DWParser m B.Inlines -image = parseLink fromRaw "{{" "}}" +image = try $ parseLink fromRaw "{{" "}}" where fromRaw path description = if linkOnly diff --git a/test/command/5416.md b/test/command/5416.md new file mode 100644 index 000000000..02999c631 --- /dev/null +++ b/test/command/5416.md @@ -0,0 +1,11 @@ +``` +% echo "{" | pandoc -f dokuwiki -t native +^D +[Para [Str "{"]] +``` + +``` +% echo "{{" | pandoc -f dokuwiki -t native +^D +[Para [Str "{{"]] +``` |