Add header ids

master
kirbylife 2024-06-01 01:00:42 -06:00
parent 64d09e0061
commit b016fc5bab
1 changed files with 1 additions and 0 deletions

View File

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