Dokuwiki Reader fix: parse single curly brace (#5417)

fixes #5416
This commit is contained in:
Mauro Bieg 2019-04-01 19:36:47 +02:00 committed by John MacFarlane
parent 0d1fc7dfff
commit 0fa6951dc1
2 changed files with 12 additions and 1 deletions

View file

@ -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

11
test/command/5416.md Normal file
View file

@ -0,0 +1,11 @@
```
% echo "{" | pandoc -f dokuwiki -t native
^D
[Para [Str "{"]]
```
```
% echo "{{" | pandoc -f dokuwiki -t native
^D
[Para [Str "{{"]]
```