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.
2 parents 22df3ea + a8326d6 commit bbedf77Copy full SHA for bbedf77
src/posts.rs
@@ -77,7 +77,8 @@ impl Post {
77
..ComrakOptions::default()
78
};
79
80
- let contents = comrak::markdown_to_html(&contents[end_of_yaml + 5..], &options);
+ // Content starts after "---\n" (we don't assume an extra newline)
81
+ let contents = comrak::markdown_to_html(&contents[end_of_yaml + 4..], &options);
82
83
// finally, the url.
84
let mut url = PathBuf::from(&*filename);
0 commit comments