call paragraph renderer for stray text tokens.

This commit is contained in:
Christopher Jeffrey 2013-12-04 05:35:30 -06:00
parent 8e51a68125
commit b0941b9151

View File

@ -1015,9 +1015,7 @@ Parser.prototype.tok = function() {
return renderer.paragraph(this.inline.output(this.token.text)); return renderer.paragraph(this.inline.output(this.token.text));
} }
case 'text': { case 'text': {
return '<p>' return renderer.paragraph(this.parseText());
+ this.parseText()
+ '</p>\n';
} }
} }
}; };