diff options
author | John MacFarlane <jgm@berkeley.edu> | 2014-12-10 21:21:33 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2014-12-10 21:21:33 -0800 |
commit | 7370f934a5e9473e28e90ed93d97d11dec5577a9 (patch) | |
tree | 1fe2b33a9a4632a2b2b62debe0e1e0bb12d367ee | |
parent | f3b4629e5765b8a3762d129a92e3b270b953356d (diff) |
Further delinting efforts.
-rw-r--r-- | js/lib/inlines.js | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/js/lib/inlines.js b/js/lib/inlines.js index 129f088..c799d0d 100644 --- a/js/lib/inlines.js +++ b/js/lib/inlines.js @@ -209,7 +209,6 @@ var parseHtmlTag = function(inlines) { // function for strong/emph parsing. var scanDelims = function(cc) { var numdelims = 0; - var first_close_delims = 0; var char_before, char_after, cc_after; var startpos = this.pos; @@ -433,16 +432,8 @@ var parseLinkDestination = function() { // Attempt to parse a link label, returning number of characters parsed. var parseLinkLabel = function() { - var match = this.match(/^\[(?:[^\\\[\]]|\\[\[\]]){0,1000}\]/); - return match === null ? 0 : match.length; -}; - -// Parse raw link label, including surrounding [], and return -// inline contents. (Note: this is not a method of InlineParser.) -var parseRawLabel = function(s) { - // note: parse without a refmap; we don't want links to resolve - // in nested brackets! - return new InlineParser().parse(s.substr(1, s.length - 2), {}); + var m = this.match(/^\[(?:[^\\\[\]]|\\[\[\]]){0,1000}\]/); + return m === null ? 0 : m.length; }; // Add open bracket to delimiter stack and add a Str to inlines. |