Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

treat sanitized block elements as paragraphs. fixes #76.

  • Loading branch information...
commit dfcbc911c39b3cab78fbba14b490ce9c931563c5 1 parent 232cebb
@chjj authored
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]
});
Please sign in to comment.
Something went wrong with that request. Please try again.