summaryrefslogtreecommitdiff
path: root/src/man.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/man.c')
-rw-r--r--src/man.c22
1 files changed, 17 insertions, 5 deletions
diff --git a/src/man.c b/src/man.c
index 8617222..2ce7540 100644
--- a/src/man.c
+++ b/src/man.c
@@ -121,10 +121,10 @@ static int S_render_node(cmark_renderer *renderer, cmark_node *node,
}
break;
- case CMARK_NODE_HEADER:
+ case CMARK_NODE_HEADING:
if (entering) {
CR();
- LIT(cmark_node_get_header_level(node) == 1 ? ".SH" : ".SS");
+ LIT(cmark_node_get_heading_level(node) == 1 ? ".SH" : ".SS");
CR();
} else {
CR();
@@ -140,10 +140,17 @@ static int S_render_node(cmark_renderer *renderer, cmark_node *node,
CR();
break;
- case CMARK_NODE_HTML:
+ case CMARK_NODE_HTML_BLOCK:
break;
- case CMARK_NODE_HRULE:
+ case CMARK_NODE_CUSTOM_BLOCK:
+ CR();
+ OUT(entering ? cmark_node_get_on_enter(node) : cmark_node_get_on_exit(node),
+ false, LITERAL);
+ CR();
+ break;
+
+ case CMARK_NODE_THEMATIC_BREAK:
CR();
LIT(".PP\n * * * * *");
CR();
@@ -188,7 +195,12 @@ static int S_render_node(cmark_renderer *renderer, cmark_node *node,
LIT("\\f[]");
break;
- case CMARK_NODE_INLINE_HTML:
+ case CMARK_NODE_HTML_INLINE:
+ break;
+
+ case CMARK_NODE_CUSTOM_INLINE:
+ OUT(entering ? cmark_node_get_on_enter(node) : cmark_node_get_on_exit(node),
+ false, LITERAL);
break;
case CMARK_NODE_STRONG: