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"
Phil-Bastian Berndt

Phil-Bastian Berndt
Tech Lead at Naymspace