From c098d25076380da5adbcfa7a4e1378e4fdf347d4 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Wed, 11 Jun 2014 09:42:57 +0100 Subject: Wrap footnote references in square brackets --- lib/document-to-html.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') 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(); -- cgit v1.2.3