drasil-printers-0.1.10.0: A framework for code and document generation for scientific software - Printers SubPackage
Safe HaskellSafe-Inferred
LanguageHaskell2010

Language.Drasil.HTML.Print

Description

Defines all functions needed to print HTML files. For more information on each of the helper functions, please view the source files.

Synopsis

Main Function

genHTML :: PrintingInformation -> String -> Document -> Doc Source #

Generate an HTML document from a Drasil Document.

Citation Renderer

renderCite :: BibFormatter -> Citation -> (Doc, Doc) Source #

For when we add other things to reference like website, newspaper

HTML Bib Formatter

htmlBibFormatter :: BibFormatter Source #

HTML specific bib rendering functions

HTML Spec Printing

pSpec :: Spec -> Doc Source #

Renders the Sentences (Exprs) in the HTML body (called by printLO).

Term Fencing Helpers

data OpenClose Source #

Referring to fence (for parenthesis and brackeds). Either opened or closed.

Constructors

Open 
Close 

fence :: OpenClose -> Fence -> String Source #

Allows for open/closed variants of parenthesis, curly brackets, absolute value symbols, and normal symbols.