瀏覽代碼

peg-markdown-highlight: update for pmh_MARK

Le Tan 7 年之前
父節點
當前提交
5c7bc6d537
共有 2 個文件被更改,包括 2598 次插入2507 次删除
  1. 3 1
      peg-highlight/pmh_definitions.h
  2. 2595 2506
      peg-highlight/pmh_parser.c

+ 3 - 1
peg-highlight/pmh_definitions.h

@@ -57,6 +57,7 @@ typedef enum
     pmh_FRONTMATTER,        /**< Front matter */
     pmh_DISPLAYFORMULA,     /**< Math display formula */
     pmh_INLINEEQUATION,     /**< Math inline equation */
+    pmh_MARK,               /**< HTML <mark> tag content */
 
     // Utility types used by the parser itself:
 
@@ -88,7 +89,7 @@ typedef enum
 * \brief Number of types in pmh_element_type.
 * \sa pmh_element_type
 */
-#define pmh_NUM_TYPES 35
+#define pmh_NUM_TYPES 36
 
 /**
 * \brief Number of *language element* types in pmh_element_type.
@@ -126,6 +127,7 @@ enum pmh_extensions
                                      http://pandoc.org/README.html#strikeout */
     pmh_EXT_FRONTMATTER  = (1 << 2),  /**< YAML meta data */
     pmh_EXT_MATH         = (1 << 3),  /**< Math */
+    pmh_EXT_MARK         = (1 << 4),  /**< HTML <mark> tag content */
 };
 
 #endif

文件差異過大導致無法顯示
+ 2595 - 2506
peg-highlight/pmh_parser.c


部分文件因文件數量過多而無法顯示