diff options
| author | Michael Williamson <mike@zwobble.org> | 2014-06-10 14:58:09 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2014-06-10 14:58:09 +0100 |
| commit | 8be57d82ffae15aa753ca57ce19c581bf0d6b897 (patch) | |
| tree | 926707ffc6133094dadae5b46c146ae77ce9be06 /lib/document-to-html.js | |
| parent | e580cc50fac9440b24854af99f5d0b72594ac0a5 (diff) | |
Add hard-coded footnote reference to HTML
Diffstat (limited to 'lib/document-to-html.js')
| -rw-r--r-- | lib/document-to-html.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/document-to-html.js b/lib/document-to-html.js index 4f38b9d..9741781 100644 --- a/lib/document-to-html.js +++ b/lib/document-to-html.js @@ -140,6 +140,14 @@ function DocumentConverter(options) { } }); }, + "footnoteReference": function(element, html, messages, callback) { + html.open(htmlPaths.element("sup")); + html.open(htmlPaths.element("a", {href: "#footnote-" + element.id})); + html.text("1"); + html.close(); + html.close(); + callback(); + }, "image": options.convertImage || defaultConvertImage }; return { |
