From 33a425b931b844691b5e4ca4b63101d8566ab159 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Mon, 8 Sep 2014 09:09:14 -0700 Subject: Did parseHtmLTag. --- js/stmd.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/js/stmd.js b/js/stmd.js index 394ad06..5fb0fb5 100755 --- a/js/stmd.js +++ b/js/stmd.js @@ -221,10 +221,9 @@ var parseAutolink = function(inlines) { var parseHtmlTag = function(inlines) { var m = this.match(reHtmlTag); if (m) { - inlines.push({ t: 'Html', c: m }); - return m.length; + return { t: 'Html', c: m }; } else { - return 0; + return null; } }; @@ -668,7 +667,7 @@ var parseInline = function() { break; case '<': res = this.parseAutolink(inlines) || - this.parseHtmlTag(inlines); + this.parseHtmlTag(); break; case '&': res = this.parseEntity(); -- cgit v1.2.3