Advertisement · 728 × 90

Posts by Leandro Pereira

Today is my first day at @supabase.com

I'm thrilled to be joining the Realtime team with very talented people.

Supabase's vision and strong belief in Open Source and Developer Experience make them unique. Exciting times ahead, let's go.

#MyElixirStatus

1 week ago 21 0 2 0
Post image

MDEx v0.12 is out with a new `:sourcepos` field exposing the starting and ending positions (line:column) of all nodes in the tree.

github.com/leandrocp/md...

#MyElixirStatus

3 weeks ago 7 0 1 0

What you get with a single command:
- GitHub and GitLab Flavored Markdown
- Syntax Highlighting with light/dark themes (a lot of languages and themes)
- HEEx components
And much more...

3 weeks ago 1 0 0 0
Video

I just published a small adapter for NimblePublisher to get a site or blog up and running quickly with MDEx and Lumis.

Check it out! github.com/leandrocp/ni...

#MyElixirStatus

3 weeks ago 17 2 1 0
Post image

Proud to be doing my part contributing to the @elixir-lang.org ecosystem. My libs and contributions just crossed 1 million downloads! Working to hit the next milestone.

#MyElixirStatus

1 month ago 20 2 2 0

MDEx v0.11.6 was pretty much a contribution-only release and the community is growing!

The syntax highlighter is managed by lumis.sh - a mix of tree-sitter and neovim themes for those curious about it.

Thanks for the coverage!

#MyElixirStatus

1 month ago 4 0 0 0

Also some fixes in the syntax highlighter and the streaming parser to recognize more patterns and make it more reliable.

Fixes by Andrew Stewart and Neil Berkman.

1 month ago 0 0 0 0
Advertisement
Codefence Renderers — MDEx v0.11.6

Added a new option `:codefence_renderers` by Neil Berkman to customize codefences (those blocks afer ```) which enables a whole new world for plugins!

Check it out -> hexdocs.pm/mdex/codefen...

1 month ago 2 0 1 0
Preview
Release v0.11.6 · leandrocp/mdex 0.11.6 - 2026-02-24 Added [Option] Add :codefence_renderers to customize code fence rendering (@neilberkman) Fixed [Syntax Highlighter] Do not wrap plaintext code in <span> tags (@stewart) [Str...

MDEx v0.11.6 is out! github.com/leandrocp/md...

Added a new `:codefence_renderers` option and also some important fixes.

#MyElixirStatus

1 month ago 12 3 1 0
Preview
Release v0.11.1 · leandrocp/mdex 0.11.1 - 2026-01-19 Changed Add use MDEx macro to set up MDEx in a module (optional) [HEEx] Add to_heex/2 and to_heex!/2 macros to convert Markdown, MDEx.Document, or HTML to HEEx with Phoenix com...

MDEx v0.11.1 is out 🔥

- Sigil docs fix by Ievgen Pyrogov
- Optional rustler dep by @halostatue.ca
- Accept :plugins opt by Sonny Scroggin
- HEEx guide hexdocs.pm/mdex/heex.html
- New to_heex/2 function
And more: github.com/leandrocp/md...

Thanks to all contributors!

#MyElixirStatus

3 months ago 10 1 0 0
GitHub - leandrocp/mdex: Fast and Extensible Markdown for Elixir. Compliant with CommonMark spec. Formats to HTML, JSON, and XML. Built on top of comrak, ammonia, and autumnus. Fast and Extensible Markdown for Elixir. Compliant with CommonMark spec. Formats to HTML, JSON, and XML. Built on top of comrak, ammonia, and autumnus. - leandrocp/mdex

I'm introducing a Sponsors section (github.com/leandrocp/md...) so if you or your company has been using MDEx, please consider sponsoring the project to help me ship new features, that would be MUCH appreciated 😀

3 months ago 2 0 0 0
Post image

2) Syntax Highlighter with Light/Dark themes

hexdocs.pm/mdex/light_d...

3 months ago 2 0 1 0
Post image

) Initial support for Phoenix Components

Yep, LiveView and Markdown working together.

hexdocs.pm/mdex/phoenix...

3 months ago 3 0 1 0
Preview
MDEx - Fast Markdown for Elixir Fast and Extensible Markdown for Elixir with native Phoenix LiveView HEEx integration.

MDEx v0.11 is out celebrating 500k downloads with a new website mdelixir.dev - thanks y'all for the support!

Some exciting new features in this version. See below 👀

#MyElixirStatus

3 months ago 12 0 1 0

Spread the word! Btw working on that feature to release in the next few days 👀

3 months ago 3 0 0 0

Hey Brian, attribution was present until v0.6.x (May/June I believe). I only removed it because I wasn't sure about using DockYard trademarks, but I'd gladly add it back again with your approval.

4 months ago 2 0 0 0
Advertisement
Post image Post image

Soon in MDEx ➡️ Phoenix Components!

Yes, MDEx will support embedding HEEx templates inside Markdown. Components and Elixir empressions.

hex.pm/packages/mdex

#MyElixirStatus

4 months ago 28 5 3 2

I'm glad it's useful. Enjoy!

6 months ago 1 0 0 0
Preview
crates.io: Rust Package Registry

All the MDEx.Document handling is done in Elixir including buffering and completing markdown chunks (using nimble_parsec). On the Rust side it "only" does parsing and rendering via crates.io/crates/comrak (an amazing project btw).

6 months ago 1 0 0 0
Preview
mdex/examples/streaming.exs at main · leandrocp/mdex Fast and Extensible Markdown for Elixir. Compliant with CommonMark spec. Formats to HTML, JSON, and XML. Built on top of comrak, ammonia, and autumnus. - leandrocp/mdex

Exactly, it's not event based. MDEx doesn't care how or how often you push chunks into the Document. So you can keep a Document in a LiveView and keep pushing into it and render when needed. There's an example here github.com/leandrocp/md...

6 months ago 3 0 0 0

It can afford to re-render as many times as needed because it's very efficient, although I'm expecting to gather some feedback and adjust if needed. One of the reasons this is considered experimental yet.

6 months ago 1 0 1 0
Preview
Streamdown A drop-in replacement for react-markdown, designed for AI-powered streaming.

This approach is similar to streamdown.ai but using nimble_parsec. A more optimized approach would require rewriting the parser from scratch like github.com/thetarnav/st... is doing but that's not on my plans.

6 months ago 2 0 1 0

Fragments are buffered until a render or parser is requested (when `MDEx.to_html` or `Document.run` or others are called). At this moment the buffer tail is completed if needed (**text -> **text**) then appended to the rest of the document and re-rendered (that's where Rustler is called). 1/n

6 months ago 1 0 1 0
Changelog — MDEx v0.9.3

And more detailed in the CHANGELOG at hexdocs.pm/mdex/changel...

6 months ago 2 0 0 0
Advertisement
Post image

4. `MDEx.Pipe` is gone. Now all operations are centralized into `MDEx.Document`. Yes that's a **breaking** change but it's worth it.

Pipelines are as simple as adding steps into the document:

6 months ago 2 0 1 0
Post image

3. The Document struct is now displayed in a tree format for better visualization with each node indexed:

6 months ago 1 0 1 0
Video

Here's a short demo of Markdown streaming in MDEx 👀

Note it's still experimental and disabled by default.

6 months ago 7 0 1 0
Post image

2. Streaming! Now it does complete and render incomplete chunks of Markdown for you:

hexdocs.pm/mdex/MDEx.Do...

6 months ago 3 0 1 0
Post image

Thanks to @jskalc.bsky.social we now support converting Markdown to quilljs.com/docs/delta

6 months ago 4 0 1 0

New MDEx (Markdown for Elixir) version is 🔥

👇

6 months ago 33 8 4 0