summaryrefslogtreecommitdiff
path: root/src/cmark.h
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/cmark.h
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/cmark.h')
-rw-r--r--src/cmark.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/cmark.h b/src/cmark.h
index 224ef3a..3eab93a 100644
--- a/src/cmark.h
+++ b/src/cmark.h
@@ -47,9 +47,10 @@ typedef enum {
CMARK_NODE_PARAGRAPH,
CMARK_NODE_HEADER,
CMARK_NODE_HRULE,
+ CMARK_NODE_REFERENCE_DEF,
CMARK_NODE_FIRST_BLOCK = CMARK_NODE_DOCUMENT,
- CMARK_NODE_LAST_BLOCK = CMARK_NODE_HRULE,
+ CMARK_NODE_LAST_BLOCK = CMARK_NODE_REFERENCE_DEF,
/* Inline */
CMARK_NODE_TEXT,
@@ -336,6 +337,7 @@ int cmark_walk(cmark_node *root, cmark_node_handler handler, void *state);
#define NODE_PARAGRAPH CMARK_NODE_PARAGRAPH
#define NODE_HEADER CMARK_NODE_HEADER
#define NODE_HRULE CMARK_NODE_HRULE
+ #define NODE_REFERENCE_DEF CMARK_NODE_REFERENCE_DEF
#define NODE_TEXT CMARK_NODE_TEXT
#define NODE_SOFTBREAK CMARK_NODE_SOFTBREAK
#define NODE_LINEBREAK CMARK_NODE_LINEBREAK