1 unstable release
new 0.0.1 | Mar 7, 2025 |
---|
#47 in #src
36 downloads per month
90KB
275 lines
Goal
Creating a simple library to render markdown with yew. The best rust crates are involved !
Usage
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 !"}/>
}
Examples
Take a look at the different examples ! You just need trunk and a web-browser to test them.
Showcase
the example is included in ./examples/showcase
Here is an illustration:
see here
Editor
Of course, an example of a basic markdown editor is implemented to show what is currently supported
see here
Interactivity
see here
Custom Components
see here
Dependencies
~14–26MB
~354K SLoC