From 2e22fae52ac623d16322a63375198f3d76ad730f Mon Sep 17 00:00:00 2001 From: Matteo Ronchi Date: Thu, 8 May 2014 22:46:53 +0200 Subject: [PATCH] Force forward slashes on SUMMARY.md paths this prevent windows user to generate invalid path on unix OS Reference to issue #39 on gitbook-editor --- lib/parse/summary.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/parse/summary.js b/lib/parse/summary.js index 7725b5901..af13088e2 100644 --- a/lib/parse/summary.js +++ b/lib/parse/summary.js @@ -82,7 +82,7 @@ function parseTitle(src, nums) { level: level, // Replace .md references with .html - path: matches[2], + path: matches[2].replace(/\\/g, '/'), }; }