From 7370f934a5e9473e28e90ed93d97d11dec5577a9 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Wed, 10 Dec 2014 21:21:33 -0800 Subject: Further delinting efforts. --- js/lib/inlines.js | 13 ++----------- 1 file 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. -- cgit v1.2.3