diff --git a/lib/marked.js b/lib/marked.js index 15ad63bfe7..462229d233 100644 --- a/lib/marked.js +++ b/lib/marked.js @@ -19,7 +19,7 @@ var block = { heading: /^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/, nptable: noop, blockquote: /^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/, - list: /^( *)(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/, + list: /^( {0,3})(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/, html: '^ {0,3}(?:' // optional indentation + '<(script|pre|style)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)' // (1) + '|comment[^\\n]*(\\n+|$)' // (2) diff --git a/test/specs/commonmark/commonmark-spec.js b/test/specs/commonmark/commonmark-spec.js index 5b62131134..7669ab3da1 100644 --- a/test/specs/commonmark/commonmark-spec.js +++ b/test/specs/commonmark/commonmark-spec.js @@ -233,7 +233,7 @@ describe('CommonMark 0.28 Block quotes', function() { var section = 'Block quotes'; // var shouldPassButFails = []; - var shouldPassButFails = [198, 199, 200, 201]; + var shouldPassButFails = [198, 199, 200]; var willNotBeAttemptedByCoreTeam = [];