summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas Weißschuh <thomas@t-8ch.de>2016-10-23 19:48:22 +0000
committerJohn MacFarlane <jgm@berkeley.edu>2016-10-23 21:48:22 +0200
commit96fa1daa6ed40a547f1ab36e4a3d32f97291e3c3 (patch)
tree1483265f54007a1a94f3fc3cb6a8dbeaa41159a1 /src
parent9dd18ebf34ce14a900c947c2f039fb2aec51e6fc (diff)
fix example in documentation (#3176)
Errors are encountered while reading, not writing
Diffstat (limited to 'src')
-rw-r--r--src/Text/Pandoc.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Text/Pandoc.hs b/src/Text/Pandoc.hs
index a302be8f4..826862dee 100644
--- a/src/Text/Pandoc.hs
+++ b/src/Text/Pandoc.hs
@@ -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