knit-haskell-0.7.0.0: a minimal Rmarkdown sort-of-thing for haskell, by way of Pandoc

Copyright(c) Adam Conner-Sax 2019
LicenseBSD-3-Clause
Maintaineradam_conner_sax@yahoo.com
Stabilityexperimental
Safe HaskellNone
LanguageHaskell2010

Knit.Report.Output.Html

Contents

Description

Functions to produce Html output for a Pandoc report.

Synopsis

Default Options

htmlWriterOptions :: WriterOptions Source #

Base Html writer options, with support for MathJax

Formatted output

toBlazeDocument Source #

Arguments

:: PandocEffects effs 
=> PandocWriterConfig 
-> PandocWithRequirements

Document and union of input requirements

-> Sem effs Html 

Convert given Pandoc to Blaze Html. Incudes support for template and template variables and changes to the default writer options

pandocWriterToBlazeDocument Source #

Arguments

:: PandocEffects effs 
=> PandocWriterConfig

Configuration info for the Pandoc writer

-> Sem (ToPandoc ': effs) ()

Effects stack to run to get Pandoc

-> Sem effs Html

Blaze Html (in remaining effects)

Convert current Pandoc document (from the ToPandoc effect) into a Blaze Html document. Incudes support for template and template variables and changes to the default writer options.

Options helper

mindocOptionsF :: WriterOptions -> WriterOptions Source #

options for the mindoc template

Other helpers

markDownTextToBlazeFragment Source #

Arguments

:: PandocEffects effs 
=> Text

markDown Text

-> Sem effs Html 

Convert markDown to Blaze

File writing helpers

writeAllPandocResultsWithInfoAsHtml :: Text -> [DocWithInfo PandocInfo Text] -> IO () Source #

Write each lazy text from a list of DocWithInfo to disk. File names come from the PandocInfo Directory is a function arguments. File extension is "html"

writePandocResultWithInfoAsHtml :: Text -> DocWithInfo PandocInfo Text -> IO () Source #

Write the Lazy Text in a DocWithInfo to disk, Name comes from the PandocInfo Directory is an argument to the function File extension is "html" Create the parent directory or directories, if necessary.