use comrak::{markdown_to_html, Options};
pub fn markdown_to_html_string(input: &str) -> String {
let mut options = Options::default();
options.extension.strikethrough = true;
options.extension.table = true;
options.extension.autolink = true;
options.extension.tasklist = true;
markdown_to_html(input, &options)
}
pub fn has_markdown(text: &str) -> bool {
text.contains("**")
|| text.contains("__")
|| text.contains("~~")
|| text.contains("```")
|| text.contains('`')
|| text.contains("- ")
|| text.contains("1. ")
|| text.contains("> ")
|| text.contains("# ")
|| text.contains('[')
}