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.Markdownnow renders viaMDExinstead ofearmark. 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 onsanitize={false}(the default path still runsHtmlSanitizer).- Updated the publishing format guide to name MDEx as the markdown renderer.
Removed
earmarkdirect dependency. It was retained only forComponents.Core.Markdown; with that component onMDEx, the dep and itsmix.lockentry are removed.earmark_parserremains transitively viaex_docand is unaffected.
PhoenixKit 1.7.161. Install or update: {:phoenix_kit, "~> 1.7"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.