aboutsummaryrefslogtreecommitdiff
path: root/lib/document-to-html.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/document-to-html.js')
-rw-r--r--lib/document-to-html.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/document-to-html.js b/lib/document-to-html.js
index fa1c63b..030df32 100644
--- a/lib/document-to-html.js
+++ b/lib/document-to-html.js
@@ -200,7 +200,7 @@ function DocumentConversion(options) {
html.closeAll();
html.open(htmlPaths.element("ol"));
var footnotes = footnoteIds.map(function(id) {
- return document.footnotes.findFootnoteById(id);
+ return document.notes.findFootnoteById(id);
});
convertElements(footnotes, html, messages, function(error) {
if (error) {
@@ -248,17 +248,17 @@ function DocumentConversion(options) {
html.close();
callback();
},
- "footnote": function(element, html, messages, callback) {
+ "note": function(element, html, messages, callback) {
var uid = footnoteUid(element.id);
- html.open(htmlPaths.element("li", {id: "footnote-" + uid}));
+ html.open(htmlPaths.element("li", {id: element.noteType + "-" + uid}));
var footnoteHtml = new HtmlGenerator();
convertElements(element.body, footnoteHtml, messages, function(err) {
if (err) {
callback(err);
} else {
footnoteHtml.text(" ");
- footnoteHtml.open(htmlPaths.element("a", {href: "#footnote-ref-" + uid}));
+ footnoteHtml.open(htmlPaths.element("a", {href: "#" + element.noteType + "-ref-" + uid}));
footnoteHtml.text("↑");
footnoteHtml.closeAll();
html.append(footnoteHtml);