diff --git a/bard/Cargo.toml b/bard/Cargo.toml index d44b8ac..ef3710b 100644 --- a/bard/Cargo.toml +++ b/bard/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "bard" -version = "0.3.19" +version = "0.3.20" edition = "2024" description = "Dioxus components that will display a Tavern blogging system Blog." repository = "/CyberMages/tavern" diff --git a/bard/src/components/post.rs b/bard/src/components/post.rs index 20b2dce..31ee88e 100644 --- a/bard/src/components/post.rs +++ b/bard/src/components/post.rs @@ -130,12 +130,7 @@ pub fn Story(text: String) -> Element { use_effect(|| { - spawn(async - { - document::eval("hljs.highlightAll();") - .await - .expect("Error highlighting code"); - }); + document::eval("hljs.highlightAll();"); }); rsx! @@ -144,7 +139,7 @@ pub fn Story(text: String) -> Element { class: "blog_post_tale", - dangerous_inner_html: "{text}" + dangerous_inner_html: text } } }