summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2014-09-08 09:11:17 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2014-09-11 11:17:40 -0700
commit3810f76a5939023d01e7ab082a6693e4634f15ad (patch)
treef991947d675d65521df2d0a187292daca4f7051f
parent9ead350be9302268214801ef966f4f50efc4996a (diff)
Cleanup.
-rwxr-xr-xjs/stmd.js7
1 files changed, 3 insertions, 4 deletions
diff --git a/js/stmd.js b/js/stmd.js
index 330ebef..5b97666 100755
--- a/js/stmd.js
+++ b/js/stmd.js
@@ -405,10 +405,10 @@ var parseLinkLabel = function() {
while ((c = this.peek()) && (c != ']' || nest_level > 0)) {
switch (c) {
case '`':
- this.parseBackticks([]);
+ this.parseBackticks();
break;
case '<':
- this.parseAutolink([]) || this.parseHtmlTag([]) || this.parseString();
+ this.parseAutolink() || this.parseHtmlTag() || this.parseString();
break;
case '[': // nested []
nest_level++;
@@ -666,8 +666,7 @@ var parseInline = function() {
res = this.parseImage(inlines);
break;
case '<':
- res = this.parseAutolink() ||
- this.parseHtmlTag();
+ res = this.parseAutolink() || this.parseHtmlTag();
break;
case '&':
res = this.parseEntity();