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