diff options
author | Samy Pessé <samypesse@gmail.com> | 2014-03-31 12:16:16 -0700 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2014-03-31 12:16:16 -0700 |
commit | 77a4c1042c7c13327641fb057c3c203cbf868782 (patch) | |
tree | acffe873bdf71e8dc89e973bc41ef5a30be63533 /lib/parse/summary.js | |
parent | 6df59745b1e32535bc529f97d3c752afac50095d (diff) | |
parent | 89593f46ab0c7dddab8414c5da55f0faeb3e61a4 (diff) | |
download | gitbook-77a4c1042c7c13327641fb057c3c203cbf868782.zip gitbook-77a4c1042c7c13327641fb057c3c203cbf868782.tar.gz gitbook-77a4c1042c7c13327641fb057c3c203cbf868782.tar.bz2 |
Merge branch 'master' of https://github.com/GitbookIO/gitbook
Diffstat (limited to 'lib/parse/summary.js')
-rw-r--r-- | lib/parse/summary.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/parse/summary.js b/lib/parse/summary.js index 8787554..f021401 100644 --- a/lib/parse/summary.js +++ b/lib/parse/summary.js @@ -76,7 +76,12 @@ function parseTitle(src) { return { title: matches[1], - path: matches[2], + + // Replace .md references with .html + path: matches[2].replace(/\.md$/, '.html'), + + // Original, non normalized path + _path: matches[2], }; } |