rust powered markdown parsing working

This commit is contained in:
Iaphetes 2024-11-13 08:06:51 +01:00
parent 49deafd8a2
commit 05519bad5b
10 changed files with 3099 additions and 4 deletions

View file

@ -24,10 +24,9 @@ fn parse_markdown(document: &str) -> String {
// }
let mut html = vec![];
format_html(root, &Options::default(), &mut html).unwrap();
println!("{:?}", String::from_utf8(html.clone()));
// String::from_utf8(html).unwrap()
String::from_str("lololo").unwrap()
// println!("{:?}", String::from_utf8(html.clone()));
String::from_utf8(html).unwrap()
// String::from_str("lololo").unwrap()
}
#[cfg_attr(mobile, tauri::mobile_entry_point)]