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
data MarkdownIt
#MarkdownItOptions Source
data MarkdownItOptions
Check https://markdown-it.github.io/markdown-it/#MarkdownIt.new to see available options.
#newMarkdownIt Source
newMarkdownIt :: Preset -> Options MarkdownItOptions -> Effect MarkdownIt
Create a new MarkdownIt instance
#render Source
render :: MarkdownIt -> String -> Effect String
Use an existing MarkdownIt instance to render markdown string to html string.
#renderInline Source
renderInline :: MarkdownIt -> String -> Effect String
Similar to render
, but without wrapping <p>
.
#use Source
use :: Foreign -> MarkdownIt -> Effect MarkdownIt
Load a plugin to an existing MarkdownIt instance.
- Modules
- MarkdownIt