- Commit
- 14d00e76a984ed79afc09589c4c49e5deba1cec4
- Parent
- 09bebcb1de0fea76be8653bed427712fb615a610
- Author
- John MacFarlane <jgm@berkeley.edu>
- Date
Use full CMARK_NODE_x instead of NODE_x alias.
My personal build of CMark ✏️
Use full CMARK_NODE_x instead of NODE_x alias.
1 file changed, 3 insertions, 2 deletions
Status | File Name | N° Changes | Insertions | Deletions |
Modified | src/inlines.c | 5 | 3 | 2 |
diff --git a/src/inlines.c b/src/inlines.c @@ -620,7 +620,8 @@ S_insert_emph(subject *subj, delimiter *opener, delimiter *closer) // replace empty opener inline with emph cmark_chunk_free(&(opener_inl->as.literal)); emph = opener_inl; - emph->type = use_delims == 1 ? NODE_EMPH : NODE_STRONG; + emph->type = use_delims == 1 ? + CMARK_NODE_EMPH : CMARK_NODE_STRONG; // remove opener from list remove_delimiter(subj, opener); } else { @@ -961,7 +962,7 @@ noMatch: match: inl = opener->inl_text; - inl->type = is_image ? NODE_IMAGE : NODE_LINK; + inl->type = is_image ? CMARK_NODE_IMAGE : CMARK_NODE_LINK; cmark_chunk_free(&inl->as.literal); inl->first_child = link_text; process_emphasis(subj, opener);