reflex-dom-pandoc-0.6.0.0: Render Pandoc documents to HTML using reflex-dom

Safe HaskellNone
LanguageHaskell2010

Reflex.Dom.Pandoc.Document

Synopsis

Documentation

elPandoc :: forall t m a. (PandocBuilder t m, Monoid a) => Config t m a -> Pandoc -> m a Source #

Convert Markdown to HTML

elPandocInlines :: PandocBuilder t m => [Inline] -> m () Source #

Render list of Pandoc inlines

elPandocBlocks :: PandocBuilder t m => [Block] -> m () Source #

Render list of Pandoc Blocks

type PandocBuilder t m = (DomBuilder t m, PandocRaw m, PandocRawConstraints m) Source #

Like DomBuilder but with a capability to render pandoc raw content.

class PandocRaw m where Source #

Class to define how to render pandoc raw nodes

Associated Types

type PandocRawConstraints m :: Constraint Source #

The constraints required to render

Methods

elPandocRaw :: PandocRawConstraints m => Format -> Text -> m () Source #

Render a raw content of the given format TODO: Distinguish between inline vs block

Instances
PandocRaw m => PandocRaw (PostBuildT t m) Source # 
Instance details

Defined in Reflex.Dom.Pandoc.PandocRaw

Associated Types

type PandocRawConstraints (PostBuildT t m) :: Constraint Source #

Methods

elPandocRaw :: Format -> Text -> PostBuildT t m () Source #

PandocRaw m => PandocRaw (ReaderT a m) Source # 
Instance details

Defined in Reflex.Dom.Pandoc.PandocRaw

Associated Types

type PandocRawConstraints (ReaderT a m) :: Constraint Source #

Methods

elPandocRaw :: Format -> Text -> ReaderT a m () Source #

PandocRaw (StaticDomBuilderT t m) Source #

In a static builder, we accept whatever raw html that comes through.

Instance details

Defined in Reflex.Dom.Pandoc.PandocRaw

data URILink Source #

A Pandoc Link node with a valid URI

Constructors

URILink 

Fields

data Config t m a Source #

Constructors

Config 

Fields