소스 검색

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,