aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2014-06-11 09:42:57 +0100
committerMichael Williamson <mike@zwobble.org>2014-06-11 09:42:57 +0100
commitc098d25076380da5adbcfa7a4e1378e4fdf347d4 (patch)
tree9a2cd34e4a87549a7811e3a1cec73c06eb5a7783 /lib
parentfab4cbb2a2c87b9eb5c11cc91d8d0fbea6201ea8 (diff)
Wrap footnote references in square brackets
Diffstat (limited to 'lib')
-rw-r--r--lib/document-to-html.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/document-to-html.js b/lib/document-to-html.js
index 5b8db9a..bec48b0 100644
--- a/lib/document-to-html.js
+++ b/lib/document-to-html.js
@@ -175,7 +175,7 @@ function DocumentConversion(options) {
html.open(htmlPaths.element("sup"));
html.open(htmlPaths.element("a", {href: "#footnote-" + element.footnoteId}));
footnoteIds.push(element.footnoteId);
- html.text((footnoteNumber++).toString());
+ html.text("[" + (footnoteNumber++) + "]");
html.close();
html.close();
callback();