diff --git a/src/main.rs b/src/main.rs index aadbed5..c5e2b35 100644 --- a/src/main.rs +++ b/src/main.rs @@ -51,7 +51,14 @@ fn show_post(title: String) -> Template { match posts::get_post(id) { Ok(mut post) => { - let content = markdown_to_html(&post.content, &ComrakOptions::default()); + let comrak_options = ComrakOptions { + ext_table: true, + ext_autolink: true, + ext_tasklist: true, + ..ComrakOptions::default() + }; + + let content = markdown_to_html(&post.content, &comrak_options); post.content = content; context.insert("post", &post);