DEV Community

Rick Penabella
Rick Penabella

Posted on

Show DEV: Render Markdown in Leptos 0.8 with zero configuration πŸ¦€

Excited to share my 1st open-source project and Rust crate: leptos-md.

Super simple Markdown renderer for Leptos 0.8 with built-in Tailwind styling and dark mode support

use leptos_md::Markdown;

#[component]
pub fn App() -> impl IntoView {
    view! {
        <div class="max-w-2xl mx-auto p-4">
            <Markdown content="# Hello World\nThis is my first crate!" />
        </div>
    }
}
Enter fullscreen mode Exit fullscreen mode

Built it since the inspiration rambip/leptos-markdown only supported leptos 0.6.

Still learning the ropes of OSS, so I'm open to feedback, PRs, or feature requests!

If you find it useful, a ⭐️ on GitHub would mean the world to me :)
github.com/epenabella/leptos-md
crates.io/crates/leptos-md

Your ExtraOrdinary dev,

Rick

Top comments (0)