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
This commit is contained in:
Matteo Ronchi
2014-05-08 22:46:53 +02:00
parent 603ac8b91d
commit 2e22fae52a
+1 -1
View File
@@ -82,7 +82,7 @@ function parseTitle(src, nums) {
level: level,
// Replace .md references with .html
path: matches[2],
path: matches[2].replace(/\\/g, '/'),
};
}