cmark

My personal build of CMark ✏️

Commit
aabd412250999ecd9c1033966ddfe8a66e26972f
Parent
4dc7bbb0c3fb1057c921dedc2f83786caaa6f0ad
Author
John MacFarlane <jgm@berkeley.edu>
Date

Reset label_nest_level before parsing reference.

This fixes a bug with text like:

[[some unrelated text [link]

[link]: destination

See #146.

Diffstat

1 file changed, 1 insertion, 0 deletions

Status File Name N° Changes Insertions Deletions
Modified js/stmd.js 1 1 0
diff --git a/js/stmd.js b/js/stmd.js
@@ -2768,6 +2768,7 @@
     var parseReference = function(s, refmap) {
         this.subject = s;
         this.pos = 0;
+        this.label_nest_level = 0;
         var rawlabel;
         var dest;
         var title;