Mirage.Markdown (mirage v0.76.0)

Module used for rendering markdown.

Rendering also collects and replaces internal references to other entities like Lists and Tags.

Link to this section Summary

Functions

Renders markdown to HTML inside a changeset if markdown changed. Markdown field and HTML field can be configured.

Sanitize html inside a changeset if html changed. HTML field and Text field can be configured.

Renders markdown with Earmark.

Link to this section Functions

Link to this function

maybe_render(changeset, markdown_field, html_field)

Renders markdown to HTML inside a changeset if markdown changed. Markdown field and HTML field can be configured.

Link to this function

maybe_sanitize(changeset, html_field, text_field)

Sanitize html inside a changeset if html changed. HTML field and Text field can be configured.

Link to this function

render(markdown)

Renders markdown with Earmark.