diff options
Diffstat (limited to 'src/cmark.h')
-rw-r--r-- | src/cmark.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/cmark.h b/src/cmark.h index 1dab0dd..732b244 100644 --- a/src/cmark.h +++ b/src/cmark.h @@ -198,6 +198,13 @@ cmark_iter_get_node(cmark_iter *iter); CMARK_EXPORT cmark_node_type cmark_node_get_type(cmark_node *node); +/** Like 'cmark_node_get_type', but returns a string representation + of the type, or `"<unknown>"`. + */ +CMARK_EXPORT +const char* +cmark_node_get_type_string(cmark_node *node); + /** Returns the string contents of 'node', or NULL if none. */ CMARK_EXPORT const char* |