This project is now archived, it moved to https://github.com/rambip/rust-web-markdown
That was the bad news, the good news is that it is now published on crates.io !
https://crates.io/crates/yew-markdown
Creating a simple library to render markdown with yew. The best rust crates are involved !
Add yew-markdown to your project:
# Cargo.toml
yew-markdown = {git="https://github.com/rambip/yew-markdown"}
If you just need to render basic markdown, you can do
use yew_markdown::Markdown;
...
html!{
<Markdown src={"# Markdown power !"}/>
}
Take a look at the different examples ! You just need trunk and a web-browser to test them.
the example is included in ./examples/showcase
see here
Of course, an example of a basic markdown editor is implemented to show what is currently supported
see here
see here
see here
- implement note reference and image reference
- publish as a crate as soon as it is stable