summaryrefslogtreecommitdiffstats
path: root/lib/parse/summary.js
diff options
context:
space:
mode:
authorSamy Pessé <samypesse@gmail.com>2014-04-04 09:47:06 -0700
committerSamy Pessé <samypesse@gmail.com>2014-04-04 09:47:06 -0700
commita52a4bed1a01f954d6faa06b502f5fe311790cb5 (patch)
tree94f9f2ca2e15cfa5d71dda5d6546dbdbffe94d62 /lib/parse/summary.js
parent9dce855113b9217201cbf1cac851da44d3238fd4 (diff)
downloadgitbook-a52a4bed1a01f954d6faa06b502f5fe311790cb5.zip
gitbook-a52a4bed1a01f954d6faa06b502f5fe311790cb5.tar.gz
gitbook-a52a4bed1a01f954d6faa06b502f5fe311790cb5.tar.bz2
Change normalization of parser to give link in .md
Diffstat (limited to 'lib/parse/summary.js')
-rw-r--r--lib/parse/summary.js5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/parse/summary.js b/lib/parse/summary.js
index 0995c40..7725b59 100644
--- a/lib/parse/summary.js
+++ b/lib/parse/summary.js
@@ -82,10 +82,7 @@ function parseTitle(src, nums) {
level: level,
// Replace .md references with .html
- path: matches[2].replace(/\.md$/, '.html'),
-
- // Original, non normalized path
- _path: matches[2],
+ path: matches[2],
};
}