Add header ids
parent
64d09e0061
commit
b016fc5bab
|
@ -83,6 +83,7 @@ fn show_post(title: String) -> Template {
|
||||||
comrak_options.extension.autolink = true;
|
comrak_options.extension.autolink = true;
|
||||||
comrak_options.extension.tasklist = true;
|
comrak_options.extension.tasklist = true;
|
||||||
comrak_options.render.unsafe_ = true;
|
comrak_options.render.unsafe_ = true;
|
||||||
|
comrak_options.extension.header_ids = Some("id-".to_string());
|
||||||
|
|
||||||
let content = markdown_to_html(&post.content, &comrak_options);
|
let content = markdown_to_html(&post.content, &comrak_options);
|
||||||
post.content = content;
|
post.content = content;
|
||||||
|
|
Loading…
Reference in New Issue