Copyright | © 2017–present Mark Karpov |
---|---|
License | BSD 3 clause |
Maintainer | Mark Karpov <[email protected]> |
Stability | experimental |
Portability | portable |
Safe Haskell | None |
Language | GHC2021 |
Text.MMark.Render
Description
MMark rendering machinery.
Since: 0.0.8.0
Synopsis
- render :: MMark -> Html ()
- applyBlockRender :: Render (Block (Ois, Html ())) -> Block (Ois, Html ()) -> Html ()
- defaultBlockRender :: (Block (Ois, Html ()) -> Html ()) -> Block (Ois, Html ()) -> Html ()
- applyInlineRender :: Render Inline -> Inline -> Html ()
- defaultInlineRender :: (Inline -> Html ()) -> Inline -> Html ()
- newline :: Html ()
Documentation
render :: MMark -> Html () Source #
Render a MMark
markdown document. You can then render
to
various things:Html
()
- to lazy
Text
withrenderText
- to lazy
ByteString
withrenderBS
- directly to file with
renderToFile
Arguments
:: (Block (Ois, Html ()) -> Html ()) | Rendering function to use to render sub-blocks |
-> Block (Ois, Html ()) | |
-> Html () |
The default Block
render.
Since: 0.0.8.0
applyInlineRender :: Render Inline -> Inline -> Html () Source #
Apply a render to a given Inline
.
Since: 0.0.8.0
The default render for Inline
elements.
Since: 0.0.8.0