diff options
author | John MacFarlane <jgm@berkeley.edu> | 2014-11-29 13:01:55 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2014-11-29 13:01:55 -0800 |
commit | e7efe2af56ceae5df00f23bb6090c81bb734bb5c (patch) | |
tree | fe8cff41001a17afd4d78b9ecbf1be303b3b31cf /src/node.c | |
parent | 5d16af6b134477d0e9b281cd1e9d962dc52b5088 (diff) | |
parent | 1d564e1fa3e8035bd9468a2f82348315b2e7b324 (diff) |
Merge pull request #227 from nwellnhof/process_emph
Optimize and clarify process_emph
Diffstat (limited to 'src/node.c')
-rw-r--r-- | src/node.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -607,6 +607,11 @@ cmark_node_check(cmark_node *node, FILE *out) cur = node; while (true) { if (cur->first_child) { + if (cur->first_child->prev != NULL) { + S_print_error(out, cur->first_child, "prev"); + cur->first_child->prev = NULL; + ++errors; + } if (cur->first_child->parent != cur) { S_print_error(out, cur->first_child, "parent"); cur->first_child->parent = cur; |