From 959bb6869ab5a099784619e43e3b1e34f6320ec3 Mon Sep 17 00:00:00 2001 From: David Pershouse Date: Thu, 10 Jan 2019 17:39:10 +1000 Subject: [PATCH] handle markdown on windows machines --- site/src/utils/_process_markdown.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/site/src/utils/_process_markdown.js b/site/src/utils/_process_markdown.js index a79d759cbb..f760018a3b 100644 --- a/site/src/utils/_process_markdown.js +++ b/site/src/utils/_process_markdown.js @@ -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);