Skip to content

Commit

Permalink
fences must be indent up to 3 spaces (pass cm example 106)
Browse files Browse the repository at this point in the history
  • Loading branch information
Feder1co5oave committed Dec 8, 2018
1 parent 91ced39 commit f0cf2c8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/marked.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ block.normal = merge({}, block);
*/

block.gfm = merge({}, block.normal, {
fences: /^ *(`{3,}|~{3,})([^`\n]*)\n(?:|([\s\S]*?)\n)(?: *\1[~`]* *(?:\n+|$)|$)/,
fences: /^ {0,3}(`{3,}|~{3,})([^`\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?:\n+|$)|$)/,
paragraph: /^/,
heading: /^ *(#{1,6}) +([^\n]+?) *#* *(?:\n+|$)/
});
Expand Down
2 changes: 1 addition & 1 deletion test/specs/commonmark/commonmark-spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ describe('CommonMark 0.28 Fenced code blocks', function() {
var section = 'Fenced code blocks';

// var shouldPassButFails = [];
var shouldPassButFails = [106, 112];
var shouldPassButFails = [112];

var willNotBeAttemptedByCoreTeam = [];

Expand Down

0 comments on commit f0cf2c8

Please sign in to comment.