fix example in documentation (#3176)
Errors are encountered while reading, not writing
This commit is contained in:
parent
9dd18ebf34
commit
96fa1daa6e
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue