| Copyright | (c) Adam Conner-Sax 2019 |
|---|---|
| License | BSD-3-Clause |
| Maintainer | adam_conner_sax@yahoo.com |
| Stability | experimental |
| Safe Haskell | None |
| Language | Haskell2010 |
Knit.Report.Output.Html
Description
Functions to produce Html output for a Pandoc report.
Synopsis
- htmlWriterOptions :: WriterOptions
- toBlazeDocument :: PandocEffects effs => PandocWriterConfig -> PandocWithRequirements -> Sem effs Html
- pandocWriterToBlazeDocument :: PandocEffects effs => PandocWriterConfig -> Sem (ToPandoc ': effs) () -> Sem effs Html
- mindocOptionsF :: WriterOptions -> WriterOptions
- markDownTextToBlazeFragment :: PandocEffects effs => Text -> Sem effs Html
Default Options
htmlWriterOptions :: WriterOptions Source #
Base Html writer options, with support for MathJax
Formatted output
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