summaryrefslogtreecommitdiff
path: root/src/html.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/html.c')
-rw-r--r--src/html.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/html.c b/src/html.c
index 12d4659..1ccb57a 100644
--- a/src/html.c
+++ b/src/html.c
@@ -39,7 +39,7 @@ struct render_state {
};
static int
-S_render_node(cmark_node *node, int entering, void *vstate)
+S_render_node(cmark_node *node, cmark_event_type ev_type, void *vstate)
{
struct render_state *state = vstate;
cmark_node *parent;
@@ -50,6 +50,8 @@ S_render_node(cmark_node *node, int entering, void *vstate)
strbuf *info;
bool tight;
+ bool entering = (ev_type == CMARK_EVENT_ENTER);
+
if (state->plain == node) { // back at original node
state->plain = NULL;
}