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

Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge. Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge.
Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Shirts painstakingly handcrafted by under-caffeinated developers. Shirts painstakingly handcrafted by under-caffeinated developers.
Community Partners