From eb7facff4a57dcf6c6818eeeb47580a83a7cbdcc Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Wed, 11 Jun 2014 15:44:44 +0100 Subject: Move jump back into last footnote paragraph --- lib/document-to-html.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'lib') diff --git a/lib/document-to-html.js b/lib/document-to-html.js index faae02b..fe601bd 100644 --- a/lib/document-to-html.js +++ b/lib/document-to-html.js @@ -203,12 +203,11 @@ function DocumentConversion(options) { if (err) { callback(err); } else { + footnoteHtml.text(" "); + footnoteHtml.open(htmlPaths.element("a", {href: "#footnote-ref-" + uid})); + footnoteHtml.text("↑"); footnoteHtml.closeAll(); html.append(footnoteHtml); - html.text(" "); - html.open(htmlPaths.element("a", {href: "#footnote-ref-" + uid})); - html.text("↑"); - html.close(); html.close(); callback(); } -- cgit v1.2.3