diff options
Diffstat (limited to 'src/cmark.h')
-rw-r--r-- | src/cmark.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/cmark.h b/src/cmark.h index 5f9f294..6b5c385 100644 --- a/src/cmark.h +++ b/src/cmark.h @@ -387,6 +387,11 @@ CMARK_EXPORT int cmark_node_insert_before(cmark_node *node, */ CMARK_EXPORT int cmark_node_insert_after(cmark_node *node, cmark_node *sibling); +/** Replaces 'oldnode' with 'newnode' and frees the memory used by 'oldnode'. + * Returns 1 on success, 0 on failure. + */ +CMARK_EXPORT int cmark_node_replace(cmark_node *oldnode, cmark_node *newnode); + /** Adds 'child' to the beginning of the children of 'node'. * Returns 1 on success, 0 on failure. */ |