Copyright | (c) Colin Woodbury 2020 - 2021 |
---|---|
License | BSD3 |
Maintainer | Colin Woodbury <colin@fosskers.ca> |
Safe Haskell | None |
Language | Haskell2010 |
Synopsis
- html :: OrgStyle -> OrgFile -> Html ()
- body :: OrgStyle -> OrgFile -> Html ()
- toc :: OrgStyle -> OrgFile -> Html ()
- data OrgStyle = OrgStyle {}
- defaultStyle :: OrgStyle
- newtype TOC = TOC {}
- type Highlighting = Maybe Language -> Text -> Html ()
- type SectionStyling = Int -> Html () -> Html () -> Html ()
- codeHTML :: Highlighting
HTML Conversion
Consider defaultStyle
as the style to pass to these functions.
html :: OrgStyle -> OrgFile -> Html () Source #
Convert a parsed OrgFile
into a full HTML document readable in a browser.
Styling
Rendering options.
OrgStyle | |
|
defaultStyle :: OrgStyle Source #
Include the title and 3-level TOC named Table of Contents
, don't include
Twitter Bootstrap classes, use no custom syntax highlighting, separate words
with a whitespace character, and don't insert an <hr>
between major
sections. This mirrors the behaviour of Emacs' native HTML export
functionality.
Options for rendering a Table of Contents in the document.
type Highlighting = Maybe Language -> Text -> Html () Source #
A function to give <code>
blocks syntax highlighting.
codeHTML :: Highlighting Source #
Mimicks the functionality of Emacs' native HTML export.