Browse Source

support more markdown flags

Sun, Chaoyang 5 years ago
parent
commit
8d66d9a44c
1 changed files with 9 additions and 1 deletions
  1. 9
    1
      src/master.cpp

+ 9
- 1
src/master.cpp View File

@@ -81,9 +81,17 @@ namespace {
81 81
 }
82 82
 
83 83
 
84
+const int K_markdown_flags =
85
+0x00000004|		//MKD_NOPANTS
86
+0x01000000| 	//MKD_DLEXTRA
87
+0x02000000| 	//MKD_FENCEDCODE
88
+0x08000000| 	//MKD_GITHUBTAGS
89
+0x40000000| 	//MKD_LATEX
90
+0;
91
+
84 92
 std::string mymarkdown(std::string const &s)
85 93
 {
86
-	int flags = mkd::no_pants;
94
+	int flags = K_markdown_flags;
87 95
 	if(s.compare(0,10,"<!--toc-->")==0) {
88 96
 		flags |= mkd::toc;
89 97
 	}

Loading…
Cancel
Save