Module

MarkdownIt

Package
purescript-markdown-it
Repository
nonbili/purescript-markdown-it

#renderString Source

renderString :: String -> Effect String

Parse and render markdown string to html string.

#MarkdownIt Source

#Preset Source

data Preset

Constructors

Instances

#MarkdownItOptions Source

#newMarkdownIt Source

newMarkdownIt :: Preset -> Options MarkdownItOptions -> Effect MarkdownIt

Create a new MarkdownIt instance

#render Source

render :: String -> MarkdownIt -> Effect String

Use an existing MarkdownIt instance to render markdown string to html string.

#renderInline Source

renderInline :: String -> MarkdownIt -> Effect String

Similar to render, but without wrapping <p>.

#usePlugin Source

usePlugin :: String -> MarkdownIt -> Effect Unit

Load a plugin to an existing MarkdownIt instance. Different from the use method in markdown-it, the first argument here is the package name, not require('plugin-name').

Modules
MarkdownIt