Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- elPandoc :: forall t m a. (PandocBuilder t m, Monoid a) => Config t m a -> Pandoc -> m a
- elPandocInlines :: PandocBuilder t m => [Inline] -> m ()
- elPandocBlocks :: PandocBuilder t m => [Block] -> m ()
- type PandocBuilder t m = (DomBuilder t m, PandocRaw m, PandocRawConstraints m)
- class PandocRaw m where
- type PandocRawConstraints m :: Constraint
- elPandocRaw :: PandocRawConstraints m => Format -> Text -> m ()
- data URILink = URILink {
- _uriLink_inner :: Maybe [Inline]
- _uriLink_uri :: URI
- data Config t m a = Config {
- _config_renderURILink :: m a -> URILink -> m a
- defaultConfig :: Monad m => Config t m ()
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
type PandocRawConstraints m :: Constraint Source #
The constraints required to render
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 # | |
Defined in Reflex.Dom.Pandoc.PandocRaw type PandocRawConstraints (PostBuildT t m) :: Constraint Source # elPandocRaw :: Format -> Text -> PostBuildT t m () Source # | |
PandocRaw m => PandocRaw (ReaderT a m) Source # | |
Defined in Reflex.Dom.Pandoc.PandocRaw type PandocRawConstraints (ReaderT a m) :: Constraint Source # | |
PandocRaw (StaticDomBuilderT t m) Source # | In a static builder, we accept whatever raw html that comes through. |
Defined in Reflex.Dom.Pandoc.PandocRaw type PandocRawConstraints (StaticDomBuilderT t m) :: Constraint Source # elPandocRaw :: Format -> Text -> StaticDomBuilderT t m () Source # |
A Pandoc Link node with a valid URI
URILink | |
|
Config | |
|
defaultConfig :: Monad m => Config t m () Source #