We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 83e1fb7 + bb5a748 commit dc31dacCopy full SHA for dc31dac
lib/markdown.js
@@ -163,8 +163,8 @@ function count_lines( str ) {
163
// Internal - split source into rough blocks
164
Markdown.prototype.split_blocks = function splitBlocks( input, startLine ) {
165
input = input.replace(/(\r\n|\n|\r)/g, "\n");
166
- // [^] matches _anything_ (newline or space)
167
- var re = /([^]+?)($|\n#|\n(?:\s*\n|$)+)/g,
+ // [\s\S] matches _anything_ (newline or space)
+ var re = /([\s\S]+?)($|\n#|\n(?:\s*\n|$)+)/g,
168
blocks = [],
169
m;
170
0 commit comments