We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0d0a11e commit f5970bdCopy full SHA for f5970bd
src/main.rs
@@ -86,8 +86,13 @@ impl Blog {
86
let YamlHeader { author, title } = serde_yaml::from_str(yaml)?;
87
88
// next, the contents. we add + to get rid of the final "---\n\n"
89
+ let options = ComrakOptions {
90
+ ext_header_ids: Some(String::new()),
91
+ ..ComrakOptions::default()
92
+ };
93
+
94
let contents =
- comrak::markdown_to_html(&contents[end_of_yaml + 5..], &ComrakOptions::default());
95
+ comrak::markdown_to_html(&contents[end_of_yaml + 5..], &options);
96
97
// finally, the url.
98
let mut url = PathBuf::from(&*filename);
0 commit comments