Module
Milkdown.Crepe
- Package
- purescript-milkdown
- Repository
- philippedev101/purescript-milkdown
#MilkdownPlugin Source
data MilkdownPluginOpaque type for a Milkdown plugin (built in JS by the consumer)
#EditorConfig Source
type EditorConfig = { defaultValue :: String, features :: Array Feature, plugins :: Array MilkdownPlugin, readonly :: Boolean, root :: Element }Configuration for creating an editor
#create Source
create :: EditorConfig -> Aff EditorCreate and mount a Crepe editor. Returns Aff because Crepe.create() is async.
#setMarkdown Source
setMarkdown :: Editor -> String -> Effect UnitReplace editor content with new markdown.
- Modules
- Milkdown.
Crepe