From aabd412250999ecd9c1033966ddfe8a66e26972f Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Tue, 7 Oct 2014 21:31:35 -0700 Subject: Reset label_nest_level before parsing reference. This fixes a bug with text like: [[some unrelated text [link] [link]: destination See #146. --- js/stmd.js | 1 + 1 file changed, 1 insertion(+) diff --git a/js/stmd.js b/js/stmd.js index e227578..bc6b2d1 100755 --- 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; -- cgit v1.2.3