Skip to content
Browse files

treat sanitized block elements as paragraphs. fixes #76.

  • Loading branch information...
1 parent 232cebb commit dfcbc911c39b3cab78fbba14b490ce9c931563c5 @chjj committed
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/marked.js
View
4 lib/marked.js
@@ -246,7 +246,9 @@ block.token = function(src, tokens, top) {
if (cap = block.html.exec(src)) {
src = src.substring(cap[0].length);
tokens.push({
- type: 'html',
+ type: options.sanitize
+ ? 'paragraph'
+ : 'html',
pre: cap[1] === 'pre',
text: cap[0]
});

0 comments on commit dfcbc91

Please sign in to comment.
Something went wrong with that request. Please try again.