Skip to content

Commit

Permalink
incr version
Browse files Browse the repository at this point in the history
  • Loading branch information
rambip committed Nov 17, 2023
1 parent 72f65af commit 68bcde6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "yew-markdown"
version = "0.2.0"
version = "0.2.1"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
Expand Down
6 changes: 3 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ impl WebFramework for MarkdownContext {
pub struct Props {
pub src: AttrValue,

pub on_click: Option<Callback<MarkdownMouseEvent, ()>>,
pub onclick: Option<Callback<MarkdownMouseEvent, ()>>,

pub render_links: Option<Callback<LinkDescription<MarkdownContext>, Html>>,

Expand All @@ -218,7 +218,7 @@ pub struct Props {
pub fn Markdown(props: &Props) -> Html {
let Props {
src,
on_click,
onclick,
render_links,
theme,
wikilinks,
Expand All @@ -230,7 +230,7 @@ pub fn Markdown(props: &Props) -> Html {
} = props;

let props = MarkdownProps {
on_click: on_click.as_ref(),
on_click: onclick.as_ref(),
render_links: render_links.as_ref(),
theme: theme.as_deref(),
wikilinks: *wikilinks,
Expand Down

0 comments on commit 68bcde6

Please sign in to comment.