Skip to content

Commit 78d07af

Browse files
committed
Add comment about IE behaviour
Encourage not regressing on this since we don't have automated browser tests yet
1 parent dc31dac commit 78d07af

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/markdown.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,7 @@ function count_lines( str ) {
164164
Markdown.prototype.split_blocks = function splitBlocks( input, startLine ) {
165165
input = input.replace(/(\r\n|\n|\r)/g, "\n");
166166
// [\s\S] matches _anything_ (newline or space)
167+
// [^] is equivalent but doesn't work in IEs.
167168
var re = /([\s\S]+?)($|\n#|\n(?:\s*\n|$)+)/g,
168169
blocks = [],
169170
m;

0 commit comments

Comments
 (0)