8000 GitHub - jprider63/dioxus-markdown: Convert markdown to dioxus vnodes
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

jprider63/dioxus-markdown

 
 

Repository files navigation

Dioxus Markdown

Easily convert markdown into Dioxus

cx.render(rsx! {
    Markdown {
        class: "content",
        content: include_str!("../README.md"),
    }
})

Features

  • Convert strings to vnodes on the fly with tvnodes

Warning:

  • Currently, this crate uses the pulldown-cmark to html converter with no actual intermediate step to Dioxus VNodes.
  • Content is set with dangerous_inner_html with no actual translation to VNodes occurring.
  • Macros are not currently implemented.

For most use cases, this approach will work fine. However, if you feel brave enough to add a true Markdown to VNode converter, we'd happily coach and assist the implementation/pull request.

About

Convert markdown to dioxus vnodes

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 100.0%
0