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.
1 parent fb2a88f commit 12619eaCopy full SHA for 12619ea
builder/plugins/custom-markdown-parse.js
@@ -3,7 +3,8 @@ const { EOL } = require('os');
3
4
5
function extractHeaders(content) {
6
- const str = content.replace(/\r\n/g, '\n');
+ // Get consitent line breaks across all OS.
7
+ const str = content.replace(/\r\n/g, '\n');
8
9
const match = ('\n' + str + '\n#')
10
.match(/\n#+.*\n[\s\S]*?(?=\n#)/g);
0 commit comments