Closed simonlau closed 3 years ago
Added a converted python example of "include" from the pandoc scripting page
#!/usr/bin/env runhaskell -- includes.hs import Text.Pandoc.JSON doInclude :: Block -> IO Block doInclude cb@(CodeBlock (id, classes, namevals) contents) = case lookup "include" namevals of Just f -> return . (CodeBlock (id, classes, namevals)) =<< readFile f Nothing -> return cb doInclude x = return x main :: IO () main = toJSONFilter doInclude
Do you want to update your pull request with the correct code you quote above? You should also add it to the examples section of the README.
Added a converted python example of "include" from the pandoc scripting page