From f4d64b66a06b6faf8e5f604c069e1bff3185d4e7 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Mon, 9 Feb 2015 20:55:09 +0000 Subject: Move bookmark handling next to hyperlink handling --- lib/document-to-html.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'lib') diff --git a/lib/document-to-html.js b/lib/document-to-html.js index 8a6e080..e9d35b9 100644 --- a/lib/document-to-html.js +++ b/lib/document-to-html.js @@ -250,6 +250,13 @@ function DocumentConversion(options) { } }); }, + "bookmarkStart": function(element, html, messages, callback) { + html.open(htmlPaths.element("a", { + id: htmlId(element.name) + }), {alwaysWrite: true}); + html.close(); + callback(); + }, "noteReference": function(element, html, messages, callback) { html.open(htmlPaths.element("sup")); html.open(htmlPaths.element("a", { @@ -286,13 +293,6 @@ function DocumentConversion(options) { "lineBreak": function(element, html, messages, callback) { html.selfClosing(htmlPaths.element("br")); callback(); - }, - "bookmarkStart": function(element, html, messages, callback) { - html.open(htmlPaths.element("a", { - id: htmlId(element.name) - }), {alwaysWrite: true}); - html.close(); - callback(); } }; return { -- cgit v1.2.3