瀏覽代碼

peg-markdown-highlight: update to c3fd99c8fe6a7041b3c01f607b602aba1aa36416

For fenced code block support.
Le Tan 7 年之前
父節點
當前提交
a20d306aab
共有 2 個文件被更改,包括 483 次插入420 次删除
  1. 4 4
      peg-highlight/pmh_definitions.h
  2. 479 416
      peg-highlight/pmh_parser.c

+ 4 - 4
peg-highlight/pmh_definitions.h

@@ -51,13 +51,13 @@ typedef enum
     pmh_HTMLBLOCK,          /**< Block of HTML */
     pmh_HRULE,              /**< Horizontal rule */
     pmh_REFERENCE,          /**< Reference */
+    pmh_FENCEDCODEBLOCK,    /**< Fenced code block */
     pmh_NOTE,               /**< Note */
     pmh_STRIKE,             /**< Strike-through */
-
     pmh_FRONTMATTER,        /**< Front matter */
-    
+
     // Utility types used by the parser itself:
-    
+
     // List of pmh_RAW element lists, each to be processed separately from
     // others (for each element in linked lists of this type, `children` points
     // to a linked list of pmh_RAW elements):
@@ -86,7 +86,7 @@ typedef enum
 * \brief Number of types in pmh_element_type.
 * \sa pmh_element_type
 */
-#define pmh_NUM_TYPES 32
+#define pmh_NUM_TYPES 33
 
 /**
 * \brief Number of *language element* types in pmh_element_type.

File diff suppressed because it is too large
+ 479 - 416
peg-highlight/pmh_parser.c


Some files were not shown because too many files changed in this diff