- Commit
- 33a425b931b844691b5e4ca4b63101d8566ab159
- Parent
- f9b9ed96c5e34a1a7224c6df825f52ef2ce2e368
- Author
- John MacFarlane <jgm@berkeley.edu>
- Date
Did parseHtmLTag.
My personal build of CMark ✏️
Did parseHtmLTag.
1 file changed, 3 insertions, 4 deletions
Status | File Name | N° Changes | Insertions | Deletions |
Modified | js/stmd.js | 7 | 3 | 4 |
diff --git 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();