Skip to content

PhoenixKit 1.7.161: Markdown rendered with MDEx

PhoenixKit 1.7.161 changes the library behind the <.markdown> component from Earmark to MDEx, which the Leaf editor and Comments already use. Pages should look the same.

Tables, strikethrough, task lists, automatic links, smart typography and fenced code blocks with their language class all render as before. Raw HTML still passes only with sanitize={false}; by default the output still goes through the HTML cleaner. Earmark is no longer a direct dependency.

Full release notes: PhoenixKit 1.7.161

1.7.161 · 18 June 2026

Changed

  • Components.Core.Markdown now renders via MDEx instead of earmark. The <.markdown> component consolidates onto the same Rust-NIF renderer already shared across the dependency tree (leaf, phoenix_kit_comments) — completing the migration begun in 1.7.158. Output is preserved: GFM (strikethrough/table/autolink/tasklist), smart typography, <code class="language-…"> fenced code blocks, and raw-HTML passthrough on sanitize={false} (the default path still runs HtmlSanitizer).
  • Updated the publishing format guide to name MDEx as the markdown renderer.

Removed

  • earmark direct dependency. It was retained only for Components.Core.Markdown; with that component on MDEx, the dep and its mix.lock entry are removed. earmark_parser remains transitively via ex_doc and is unaffected.

PhoenixKit 1.7.161. Install or update: {:phoenix_kit, "~> 1.7"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.