aboutsummaryrefslogtreecommitdiff
path: root/lib/document-to-html.js
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2016-03-28 12:52:01 +0100
committerMichael Williamson <mike@zwobble.org>2016-03-28 13:47:37 +0100
commitb4a2cfa279ac777f1c331ffcf46da6f9394c5bf3 (patch)
treef5a36eefc3be7d59e7339ed20e761575d2158bf9 /lib/document-to-html.js
parent1caa452c06f31f35ee5ad15f0e9dae97b928daa3 (diff)
Default the ID prefix to the empty string
Diffstat (limited to 'lib/document-to-html.js')
-rw-r--r--lib/document-to-html.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/document-to-html.js b/lib/document-to-html.js
index 96dc740..baf900e 100644
--- a/lib/document-to-html.js
+++ b/lib/document-to-html.js
@@ -35,9 +35,7 @@ function DocumentConversion(options) {
var noteReferences = [];
options = _.extend({ignoreEmptyParagraphs: true}, options);
- var idPrefix = options.idPrefix === undefined ?
- Math.floor(Math.random() * 1000000000000000) + "-" :
- options.idPrefix;
+ var idPrefix = options.idPrefix === undefined ? "" : options.idPrefix;
var defaultParagraphStyle = htmlPaths.topLevelElement("p");