瀏覽代碼

Extend markdown features (add support to footnotes and tables)

Alexandre Leblanc 3 年之前
父節點
當前提交
1a2e8317f3
共有 1 個文件被更改,包括 2 次插入0 次删除
  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,