Module
Text.Markdown.SlamDown.Smolder
- Package
- purescript-markdown-smolder
- Repository
- hgiasac/purescript-markdown-smolder
#defaultToMarkupOptions Source
defaultToMarkupOptions :: forall e. ToMarkupOptions eDefault convert options
#toMarkup' Source
toMarkup' :: forall e a. ToMarkupOptions e -> SlamDownP a -> Markup eConvert 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 eConvert Markdown block elements to Smolder markup
#toElement Source
toElement :: forall e a. Block a -> ToReaderMarkup eConvert Markdown block element to Smolder markup
#renderFencedCodeBlock Source
renderFencedCodeBlock :: forall e. String -> List String -> Markup eDefault 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