[go: nahoru, domu]

Skip to content

Commit

Permalink
call paragraph renderer for stray text tokens.
Browse files Browse the repository at this point in the history
  • Loading branch information
chjj committed Dec 4, 2013
1 parent 8e51a68 commit b0941b9
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/marked.js
Original file line number Diff line number Diff line change
Expand Up @@ -1015,9 +1015,7 @@ Parser.prototype.tok = function() {
return renderer.paragraph(this.inline.output(this.token.text));
}
case 'text': {
return '<p>'
+ this.parseText()
+ '</p>\n';
return renderer.paragraph(this.parseText());
}
}
};
Expand Down

0 comments on commit b0941b9

Please sign in to comment.