From 7f4b2f7f3949f807d5dafe2219280a0f1419b0e2 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Wed, 24 Sep 2014 22:23:09 -0700 Subject: Fixed bug that causes hang on bare `<` inside link label. --- js/stmd.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'js/stmd.js') 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++; -- cgit v1.2.3