Raxol.Components.MarkdownRenderer (Raxol v0.3.0)

View Source

Renders Markdown text into Raxol elements or raw HTML.

Requires the earmark dependency.

Summary

Functions

broadcast(msg)

command(cmd)

handle_event(event, state, context)

Callback implementation for Raxol.UI.Components.Base.Component.handle_event/3.

init(props)

Callback implementation for Raxol.UI.Components.Base.Component.init/1.

mount(state)

Callback implementation for Raxol.UI.Components.Base.Component.mount/1.

render(state, context)

Renders the given Markdown string.

schedule(msg, delay)

unmount(state)

Callback implementation for Raxol.UI.Components.Base.Component.unmount/1.

update(message, state)

Callback implementation for Raxol.UI.Components.Base.Component.update/2.