cmark

My personal build of CMark ✏️

Commit
e343675837838797b471296535c3ab8db6b969d6
Parent
b5a8a8b324704420d1f622b3d081ad2fb7156bf3
Author
John MacFarlane <jgm@berkeley.edu>
Date

Merge pull request #94 from kainjow/patch-1

Fix "declaration shadows a local variable"

Diffstat

1 file changed, 1 insertion, 1 deletion

Status File Name N° Changes Insertions Deletions
Modified src/commonmark.c 2 1 1
diff --git a/src/commonmark.c b/src/commonmark.c
@@ -230,7 +230,7 @@ static int S_render_node(cmark_renderer *renderer, cmark_node *node,
 
   case CMARK_NODE_HEADER:
     if (entering) {
-      for (int i = cmark_node_get_header_level(node); i > 0; i--) {
+      for (i = cmark_node_get_header_level(node); i > 0; i--) {
         LIT("#");
       }
       LIT(" ");