|
@ -55,6 +55,11 @@ module.exports = function fences(state, startLine, endLine, silent) { |
|
|
|
|
|
|
|
|
if (state.src.charCodeAt(pos) !== marker) { continue; } |
|
|
if (state.src.charCodeAt(pos) !== marker) { continue; } |
|
|
|
|
|
|
|
|
|
|
|
if (state.tShift[nextLine] - state.blkIndent >= 4) { |
|
|
|
|
|
// closing fence should be indented less than 4 spaces
|
|
|
|
|
|
continue; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
pos = state.skipChars(pos, marker); |
|
|
pos = state.skipChars(pos, marker); |
|
|
|
|
|
|
|
|
// closing code fence must be at least as long as the opening one
|
|
|
// closing code fence must be at least as long as the opening one
|
|
|