From 8be57d82ffae15aa753ca57ce19c581bf0d6b897 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Tue, 10 Jun 2014 14:58:09 +0100 Subject: Add hard-coded footnote reference to HTML --- lib/documents.js | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'lib/documents.js') diff --git a/lib/documents.js b/lib/documents.js index 061c8c1..12ebc73 100644 --- a/lib/documents.js +++ b/lib/documents.js @@ -5,6 +5,7 @@ var types = { text: "text", tab: "tab", hyperlink: "hyperlink", + footnoteReference: "footnoteReference", image: "image" }; @@ -60,6 +61,14 @@ function Hyperlink(children, options) { }; } +function FootnoteReference(options) { + return { + type: types.footnoteReference, + id: options.id, + body: options.body + }; +} + function ElementWithChildren(type) { return function(children, properties) { return { @@ -85,4 +94,5 @@ exports.Run = Run; exports.Text = Text; exports.Tab = Tab; exports.Hyperlink = Hyperlink; +exports.FootnoteReference = FootnoteReference; exports.Image = Image; -- cgit v1.2.3