diff options
author | John MacFarlane <jgm@berkeley.edu> | 2014-09-08 09:09:14 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2014-09-11 11:17:40 -0700 |
commit | 33a425b931b844691b5e4ca4b63101d8566ab159 (patch) | |
tree | 9de0a37246461b46bd3b60c9ce5dcb3d701dc4f1 | |
parent | f9b9ed96c5e34a1a7224c6df825f52ef2ce2e368 (diff) |
Did parseHtmLTag.
-rwxr-xr-x | js/stmd.js | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -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(); |