diff options
author | John MacFarlane <jgm@berkeley.edu> | 2014-10-07 21:31:35 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2014-10-07 21:34:39 -0700 |
commit | aabd412250999ecd9c1033966ddfe8a66e26972f (patch) | |
tree | 32464421deadf08446d88b1303f9fc4976f607a9 | |
parent | 4dc7bbb0c3fb1057c921dedc2f83786caaa6f0ad (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-x | js/stmd.js | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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; |