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
@ -53,6 +53,8 @@ typedef enum
|
|||||||
pmh_REFERENCE, /**< Reference */
|
pmh_REFERENCE, /**< Reference */
|
||||||
pmh_NOTE, /**< Note */
|
pmh_NOTE, /**< Note */
|
||||||
pmh_STRIKE, /**< Strike-through */
|
pmh_STRIKE, /**< Strike-through */
|
||||||
|
|
||||||
|
pmh_FRONTMATTER, /**< Front matter */
|
||||||
|
|
||||||
// Utility types used by the parser itself:
|
// Utility types used by the parser itself:
|
||||||
|
|
||||||
@ -84,7 +86,7 @@ typedef enum
|
|||||||
* \brief Number of types in pmh_element_type.
|
* \brief Number of types in pmh_element_type.
|
||||||
* \sa 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.
|
* \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_NONE = 0, /**< No extensions */
|
||||||
pmh_EXT_NOTES = (1 << 0), /**< Footnote syntax:
|
pmh_EXT_NOTES = (1 << 0), /**< Footnote syntax:
|
||||||
http://pandoc.org/README.html#footnotes */
|
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 */
|
http://pandoc.org/README.html#strikeout */
|
||||||
|
pmh_EXT_FRONTMATTER = (1 << 2) /**< YAML meta data */
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user