aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xjs/stmd.js7
1 files 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();