handle markdown on windows machines

pull/1979/head
David Pershouse 6 years ago
parent 5ff3e7f52a
commit 9b7d0152bc

@ -1,5 +1,5 @@
export default function process_markdown(markdown) {
const match = /---\n([\s\S]+?)\n---/.exec(markdown);
const match = /---\r?\n([\s\S]+?)\r?\n---/.exec(markdown);
const frontMatter = match[1];
const content = markdown.slice(match[0].length);

Loading…
Cancel
Save