mirror of
https://gitee.com/vnotex/vnote.git
synced 2025-07-06 06:19:52 +08:00
peg-markdown-highlight: update to 03b1cae7646acc3586910679b0b4872d6f4b5884
Support FRONTMATTER.
This commit is contained in:
parent
d9c8051fa3
commit
5b681dd64c
@ -54,6 +54,8 @@ typedef enum
|
||||
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
|
||||
@ -84,7 +86,7 @@ typedef enum
|
||||
* \brief Number of types in pmh_element_type.
|
||||
* \sa pmh_element_type
|
||||
*/
|
||||
#define pmh_NUM_TYPES 31
|
||||
#define pmh_NUM_TYPES 32
|
||||
|
||||
/**
|
||||
* \brief Number of *language element* types in pmh_element_type.
|
||||
@ -118,8 +120,9 @@ enum pmh_extensions
|
||||
pmh_EXT_NONE = 0, /**< No extensions */
|
||||
pmh_EXT_NOTES = (1 << 0), /**< Footnote syntax:
|
||||
http://pandoc.org/README.html#footnotes */
|
||||
pmh_EXT_STRIKE = (1 << 1) /**< Strike-through syntax:
|
||||
pmh_EXT_STRIKE = (1 << 1), /**< Strike-through syntax:
|
||||
http://pandoc.org/README.html#strikeout */
|
||||
pmh_EXT_FRONTMATTER = (1 << 2) /**< YAML meta data */
|
||||
};
|
||||
|
||||
#endif
|
||||
|
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user