MCPcopy Create free account
hub / github.com/commonmark/cmark / cmark_node_get_on_enter

Function cmark_node_get_on_enter

src/node.c:576–590  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

574}
575
576const char *cmark_node_get_on_enter(cmark_node *node) {
577 if (node == NULL) {
578 return NULL;
579 }
580
581 switch (node->type) {
582 case CMARK_NODE_CUSTOM_INLINE:
583 case CMARK_NODE_CUSTOM_BLOCK:
584 return node->as.custom.on_enter ? (char *)node->as.custom.on_enter : "";
585 default:
586 break;
587 }
588
589 return NULL;
590}
591
592int cmark_node_set_on_enter(cmark_node *node, const char *on_enter) {
593 if (node == NULL) {

Callers 4

custom_nodesFunction · 0.85
S_render_nodeFunction · 0.85
S_render_nodeFunction · 0.85
S_render_nodeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected