PhoenixEmail.Markdown (PhoenixEmail v0.1.1)

Copy Markdown View Source

Markdown to email-safe HTML for PhoenixEmail.Components.markdown/1.

Requires earmark_parser — add :earmark_parser to your dependencies. Every supported element gets an inline style so the result survives email clients; pass custom styles to override the defaults per tag.

Summary

Functions

The default per-tag inline styles.

Converts a markdown string into email-safe HTML iodata.

Functions

default_styles()

The default per-tag inline styles.

to_html(markdown, custom_styles \\ %{})

Converts a markdown string into email-safe HTML iodata.

custom_styles is a map from tag name (atom or string) to an inline CSS string or style object (map or keyword list), merged over default_styles/0.