added tables, autolinks and tasklist extensions

pull/1/head
kirbylife 2019-12-21 03:55:21 -06:00
parent b2a3ada543
commit 4f8ca9acae
1 changed files with 8 additions and 1 deletions

View File

@ -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);