TIL the best way to parse Markdown in Elixir

February 3, 2024 · 1 min read

I use Markdown to write content for this site. After looking at the current options, I went with MDex:

A fast 100% CommonMark-compatible GitHub Flavored Markdown parser and formatter for Elixir.

It’s as simple as it gets:

MDEx.to_html("# Hello world")
#=> "<h1>Hello world</h1>\n"
Elixir
Phil-Bastian Berndt
About me

Software engineer with a passion for functional programming. Tech Lead at Naymspace. Let's connect!