summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2014-09-08 09:09:14 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2014-09-11 11:17:40 -0700
commit33a425b931b844691b5e4ca4b63101d8566ab159 (patch)
tree9de0a37246461b46bd3b60c9ce5dcb3d701dc4f1
parentf9b9ed96c5e34a1a7224c6df825f52ef2ce2e368 (diff)
Did parseHtmLTag.
-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();