If you look at the pandoc documentation, you will see scripts written in Haskell. I just recently learned the basics of Haskell, so I'm not familiar with some of the idioms that seem to appear in these scenarios.
One of the things that I don't understand is use defin these scenarios. For example, at the top of Text.Pandoc is the following code:
markdownToRST :: String -> String
markdownToRST =
(writeRST def {writerReferenceLinks = True}) . readMarkdown def
main = getContents >>= putStrLn . markdownToRST
What does "def" do after readMarkdownand writeRST?
source
share