Browse Source

Extend markdown features (add support to footnotes and tables)

Alexandre Leblanc 3 years ago
parent
commit
1a2e8317f3
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/theme.rs

+ 2 - 0
src/theme.rs

@@ -11,6 +11,8 @@ impl Theme {
     pub fn new(root_path: String) -> Self {
         let mut parser_options = pulldown_cmark::Options::empty();
         parser_options.insert(pulldown_cmark::Options::ENABLE_STRIKETHROUGH);
+        parser_options.insert(pulldown_cmark::Options::ENABLE_TABLES);
+        parser_options.insert(pulldown_cmark::Options::ENABLE_FOOTNOTES);
 
         Theme {
             root_path,