Parcourir la source

Extend markdown features (add support to footnotes and tables)

Alexandre Leblanc il y a 3 ans
Parent
commit
1a2e8317f3
1 fichiers modifiés avec 2 ajouts et 0 suppressions
  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,