diff options
author | John MacFarlane <jgm@berkeley.edu> | 2014-12-28 20:45:35 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2014-12-28 20:52:17 -0800 |
commit | 96c7df6a8480b78ddc2540dd85877487af358ceb (patch) | |
tree | 548174d5a2fa85dcae0cd93be2ea41e1eeb10bd1 /src/cmark.h | |
parent | 2875252bf83c7a0f26ee940e5c29920b290d615f (diff) |
Added cmark_node_set_list_delim, cmark_node_get_list_delim.
Even though this doesn't make a difference in default HTML
output, it's worth keeping track; some output formats may allow
you to distinguish lists with `1)` and with `1.` delimiters.
Diffstat (limited to 'src/cmark.h')
-rw-r--r-- | src/cmark.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/cmark.h b/src/cmark.h index 3d2ed15..8196158 100644 --- a/src/cmark.h +++ b/src/cmark.h @@ -238,6 +238,18 @@ cmark_node_get_list_type(cmark_node *node); CMARK_EXPORT int cmark_node_set_list_type(cmark_node *node, cmark_list_type type); +/** Returns the list delimiter type of 'node', or `CMARK_NO_DELIM` if 'node' + * is not a list. + */ +CMARK_EXPORT cmark_delim_type +cmark_node_get_list_delim(cmark_node *node); + +/** Sets the list delimiter type of 'node', returning 1 on success and 0 + * on error. + */ +CMARK_EXPORT int +cmark_node_set_list_delim(cmark_node *node, cmark_delim_type delim); + /** Returns starting number of 'node', if it is an ordered list, otherwise 0. */ CMARK_EXPORT int |