summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSamy Pessé <samypesse@gmail.com>2015-01-22 18:08:05 +0100
committerSamy Pessé <samypesse@gmail.com>2016-12-22 11:46:16 +0100
commit7f42146d4b121104e52e5066672545e16e55b878 (patch)
tree775b0c2e769e9ac6f61571a3053942737f94303d
parent93e7ef66c180dba9299da73b1994b897cdf763f3 (diff)
downloadgitbook-7f42146d4b121104e52e5066672545e16e55b878.zip
gitbook-7f42146d4b121104e52e5066672545e16e55b878.tar.gz
gitbook-7f42146d4b121104e52e5066672545e16e55b878.tar.bz2
Don't add id to glossary entry
-rwxr-xr-xpackages/gitbook-asciidoc/lib/glossary.js7
1 files changed, 0 insertions, 7 deletions
diff --git a/packages/gitbook-asciidoc/lib/glossary.js b/packages/gitbook-asciidoc/lib/glossary.js
index cafb130..e3f51bd 100755
--- a/packages/gitbook-asciidoc/lib/glossary.js
+++ b/packages/gitbook-asciidoc/lib/glossary.js
@@ -16,7 +16,6 @@ function parseGlossary(src) {
var entry = {};
entry.name = $h2.text();
- entry.id = entryId(entry.name);
entry.description = $p.text();
entries.push(entry);
@@ -25,10 +24,4 @@ function parseGlossary(src) {
return entries;
}
-// Normalizes a glossary entry's name to create an ID
-function entryId(name) {
- return name.toLowerCase();
-}
-
module.exports = parseGlossary;
-module.exports.entryId = entryId;