diff --git a/src/main.rs b/src/main.rs index ebe6f92..1a0ea3a 100644 --- a/src/main.rs +++ b/src/main.rs @@ -83,6 +83,7 @@ fn show_post(title: String) -> Template { comrak_options.extension.autolink = true; comrak_options.extension.tasklist = true; comrak_options.render.unsafe_ = true; + comrak_options.extension.header_ids = Some("id-".to_string()); let content = markdown_to_html(&post.content, &comrak_options); post.content = content;