Safe Haskell | None |
---|---|
Language | Haskell2010 |
Internal functions that deal with nodes.
Synopsis
- evalNodes :: Env -> [PNode] -> PencilApp [PNode]
- parseAndConvertTextFiles :: FilePath -> PencilApp (Text, [PNode])
- loadTextFile :: FilePath -> PencilApp Text
- readMarkdownWriteHtml :: PandocMonad m => ReaderOptions -> WriterOptions -> Text -> m Text
Documentation
evalNodes :: Env -> [PNode] -> PencilApp [PNode] Source #
Evaluate the nodes in the given environment. Note that it returns an IO
because of ${partial(..)}
calls that requires us to load a file.
loadTextFile :: FilePath -> PencilApp Text Source #
Loads the given file as a text file. Throws an exception into the ExceptT monad transformer if the file is not a text file.
readMarkdownWriteHtml :: PandocMonad m => ReaderOptions -> WriterOptions -> Text -> m Text Source #
Converts Markdown to HTML using the given options.