#defaultToMarkupOptions Source

defaultToMarkupOptions :: forall e. ToMarkupOptions e

Default convert options

#toMarkup Source

toMarkup :: forall e a. SlamDownP a -> Markup e

Convert Smolder markup from Slamdown Markdown without options

#toMarkup' Source

toMarkup' :: forall e a. ToMarkupOptions e -> SlamDownP a -> Markup e

Convert Smolder markup from Slamdown Markdown with options

Re-exports from Text.Markdown.Smolder.Internal.Block

#toElements Source

toElements :: forall e a. List (Block a) -> ToReaderMarkup e

Convert Markdown block elements to Smolder markup

#toElement Source

toElement :: forall e a. Block a -> ToReaderMarkup e

Convert Markdown block element to Smolder markup

#renderFencedCodeBlock Source

renderFencedCodeBlock :: forall e. String -> List String -> Markup e

Default render fenced code block. You can render yourself set it in options

Re-exports from Text.Markdown.Smolder.Internal.Type

#ToReaderMarkup Source

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

Reader Monad with ToMarkupReaderData

#ToMarkupReaderData Source

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

Reader Monad Data

#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