aboutsummaryrefslogtreecommitdiff
path: root/src/blog.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/blog.rs')
-rw-r--r--src/blog.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/blog.rs b/src/blog.rs
index eaa314a..a1586f8 100644
--- a/src/blog.rs
+++ b/src/blog.rs
@@ -18,7 +18,9 @@ pub fn read_assets() -> Vec<BlogEntry> {
fn get_file_content(path: &str) -> String {
let buffer = PostAsset::get(path).unwrap().data.into_owned();
let md = String::from_utf8(buffer).unwrap();
- let parser = Parser::new_ext(&md, Options::empty());
+ let mut options = Options::empty();
+ options.insert(Options::ENABLE_FOOTNOTES);
+ let parser = Parser::new_ext(&md, options);
let mut html_output = &mut String::new();
html::push_html(&mut html_output, parser);
return html_output.to_string();