Module

Text.Markdown.Smolder.Internal.Type

Package
purescript-markdown-smolder
Repository
hgiasac/purescript-markdown-smolder

#ToReaderMarkup Source

type ToReaderMarkup e = Reader (ToMarkupReaderData e) (Markup e)

Reader Monad with ToMarkupReaderData

#ToMarkupOptions Source

type ToMarkupOptions e = { hClasses :: Array (Tuple Int String), hideHeadingId :: Boolean, olClass :: String, pClass :: String, renderFencedCodeBlock :: String -> List String -> Markup e, ulClass :: String }

Convert options, you can set classes into common markups If you don't want to set id in headings, set hideHeadingId If you need to render code block content to another markup templates, define function renderFencedCodeBlock option

#ToMarkupReaderData Source

type ToMarkupReaderData e = { options :: ToMarkupOptions e, referenceLinks :: ReferenceLinks }

Reader Monad Data