diff options
author | John MacFarlane <jgm@berkeley.edu> | 2015-01-20 17:47:07 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2015-01-20 17:47:07 -0800 |
commit | 84d48648f0a203befd666aa0c7dad32fa1a22710 (patch) | |
tree | 63dd5f72e5ca537df9e5841b51b91ed93ed82b5a /src/iterator.c | |
parent | 3f4d605546fc82a3cdce8056790f1bb140a62903 (diff) | |
parent | 4b5e43c4fa9e18b7a281063a98fbef0def5a1cbe (diff) |
Merge pull request #289 from nwellnhof/user_data
Add field for user data to node
Diffstat (limited to 'src/iterator.c')
-rw-r--r-- | src/iterator.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/iterator.c b/src/iterator.c index 4daec2d..eb7b49c 100644 --- a/src/iterator.c +++ b/src/iterator.c @@ -108,6 +108,12 @@ cmark_iter_get_event_type(cmark_iter *iter) return iter->cur.ev_type; } +cmark_node* +cmark_iter_get_root(cmark_iter *iter) +{ + return iter->root; +} + void cmark_consolidate_text_nodes(cmark_node *root) { |