emanote-1.0.2.0: Emanate a structured view of your plain-text notes
Safe HaskellSafe-Inferred
LanguageHaskell2010

Emanote.Pandoc.Renderer

Description

Types for custom render extensions to Pandoc AST nodes.

Note that unlike Pandoc *filters* (which operate on entire document), these are modeled based on Text.Pandoc.Walk, ie. fine-grained on individual inline and block processing. We do this only so as to render a specific node during recursion (cf. rpBlock and rpInline in Render.hs).

So we expect the extensions to be in Haskell, however external script may be supported using a traditional whole-AST extension API.

Documentation

data PandocRenderers model route Source #

Constructors

PandocRenderers [PandocInlineRenderer model route] [PandocBlockRenderer model route] 

type PandocInlineRenderer model route = PandocRenderF model route Inline Source #

type PandocBlockRenderer model route = PandocRenderF model route Block Source #

mkRenderCtxWithPandocRenderers :: forall model route m. Monad m => PandocRenderers model route -> Map Text Text -> model -> route -> HeistT Identity m RenderCtx Source #

data EmanotePandocRenderers a r Source #

Constructors

EmanotePandocRenderers 

Fields