mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-09-25 03:42:30 +00:00
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:
@@ -82,7 +82,7 @@ function parseTitle(src, nums) {
|
||||
level: level,
|
||||
|
||||
// Replace .md references with .html
|
||||
path: matches[2],
|
||||
path: matches[2].replace(/\\/g, '/'),
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user