You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

util.rs 274B

123456789
  1. use pulldown_cmark::{html, Options, Parser};
  2. pub fn generate_html(s: &str) -> String {
  3. let options = Options::all();
  4. let parser = Parser::new_ext(s, options);
  5. let mut html_output = String::new();
  6. html::push_html(&mut html_output, parser);
  7. html_output
  8. }