# `PhoenixEmail.Markdown`
[🔗](https://github.com/gabrielperales/phoenix-email/blob/v0.1.2/lib/phoenix_email/markdown.ex#L1)

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

Requires [earmark_parser](https://hex.pm/packages/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.

# `default_styles`

The default per-tag inline styles.

# `to_html`

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`.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
