aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--NEWS3
-rw-r--r--lib/document-to-html.js4
2 files changed, 4 insertions, 3 deletions
diff --git a/NEWS b/NEWS
index a17c31c..9ddb0f2 100644
--- a/NEWS
+++ b/NEWS
@@ -2,6 +2,9 @@
* Generated IDs no longer insert a hyphen after the ID prefix.
+* The default ID prefix is now the empty string rather than a random number
+ followed by a hyphen.
+
# 0.3.33
* Improve collapsing of elements when there are empty elements.
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");