summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2014-10-07 21:31:35 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2014-10-07 21:34:39 -0700
commitaabd412250999ecd9c1033966ddfe8a66e26972f (patch)
tree32464421deadf08446d88b1303f9fc4976f607a9
parent4dc7bbb0c3fb1057c921dedc2f83786caaa6f0ad (diff)
Reset label_nest_level before parsing reference.
This fixes a bug with text like: [[some unrelated text [link] [link]: destination See #146.
-rwxr-xr-xjs/stmd.js1
1 files changed, 1 insertions, 0 deletions
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;