fix example in documentation (#3176)

Errors are encountered while reading, not writing
This commit is contained in:
Thomas Weißschuh 2016-10-23 19:48:22 +00:00 committed by John MacFarlane
parent 9dd18ebf34
commit 96fa1daa6e

View file

@ -40,9 +40,9 @@ inline links:
> import Text.Pandoc.Error (handleError)
>
> markdownToRST :: String -> String
> markdownToRST = handleError .
> markdownToRST =
> writeRST def {writerReferenceLinks = True} .
> readMarkdown def
> handleError . readMarkdown def
>
> main = getContents >>= putStrLn . markdownToRST