Skip to content

MDEx is the Markdown parser this site uses

February 3, 2024

I write the content for this site in Markdown. After looking at the current options, I went with MDEx:

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

The API is as simple as it gets:

MDEx.to_html("# Hello world")
#=> "<h1>Hello world</h1>\n"

—

Back to TIL

Next: Floki encodes special characters in LiveView tests unless encode_raw_html is off

Phil-Bastian Berndt

Phil-Bastian Berndt
Tech Lead at Naymspace