summaryrefslogtreecommitdiff
path: root/src/print.c
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2014-12-12 23:49:52 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2014-12-12 23:49:52 -0800
commit831bf6de49ae58bd3630f40bdb6f8bc5371a33dd (patch)
tree5878846380b43f3116c9ddc0afc4d645486549cd /src/print.c
parent3d0110a36054a9af1532d52f2671360fa1c802a3 (diff)
Revert "Removed CMARK_NODE_REFERENCE_DEF from API."
This reverts commit b598b52a4acdc2332be3d34e30237d1b93b7dd03. The change led to some problems, because some of the callers of 'finalize' expected the node to exist after the call. This could all be rewritten, but for now let's just revert.
Diffstat (limited to 'src/print.c')
-rw-r--r--src/print.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/print.c b/src/print.c
index 9384a0b..d2dfe8c 100644
--- a/src/print.c
+++ b/src/print.c
@@ -88,6 +88,10 @@ static void render_nodes(strbuf* buffer, cmark_node* node, int indent)
print_str(buffer, node->string_content.ptr, -1);
strbuf_putc(buffer, '\n');
break;
+ case NODE_REFERENCE_DEF:
+ // skip
+ // strbuf_printf(buffer, "reference_def\n");
+ break;
case NODE_TEXT:
strbuf_printf(buffer, "text ");
print_str(buffer, node->as.literal.data, node->as.literal.len);