Parsing and rendering Markdown as HTML is very common on the modern web. The content found on this very blog is written in Markdown and rendered to HTML using the https://github.com/thephpleague/commonmark package and a few plugins.

The biggest bottleneck in the process is in fact the conversion of Markdown to HTML.

#[no_mangle] pub extern "C" fn compile(markdown: *const c_char) -> *const c_char { return markdown; } $ffi = FFI::cdef('const char* compile(const char* markdown);', __DIR__.

We're parsing and compiling Markdown to HTML with Rust and FFI.
Newsletter

Get the latest Laravel/PHP jobs, events and curated articles straight to your inbox, once a week

Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future. Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future.
Community Partners