summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2014-09-24 22:23:09 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2014-09-24 22:23:09 -0700
commit7f4b2f7f3949f807d5dafe2219280a0f1419b0e2 (patch)
treeda17d916b4c6835ce2bc06c48b2b4ec32bb43d89
parent518eaeca38dfc6f840907f6bcc1ce28826801888 (diff)
Fixed bug that causes hang on bare `<` inside link label.
-rwxr-xr-xjs/stmd.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/js/stmd.js b/js/stmd.js
index 72e0306..552fe16 100755
--- a/js/stmd.js
+++ b/js/stmd.js
@@ -534,9 +534,8 @@
this.parseBackticks();
break;
case '<':
- if (!(this.parseAutolink())) {
- this.parseHtmlTag();
- }
+ this.parseAutolink() || this.parseHtmlTag() ||
+ this.pos++;
break;
case '[': // nested []
nest_level++;