diff options
Diffstat (limited to 'lib/document-to-html.js')
| -rw-r--r-- | lib/document-to-html.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/document-to-html.js b/lib/document-to-html.js index caccb6f..1224878 100644 --- a/lib/document-to-html.js +++ b/lib/document-to-html.js @@ -72,6 +72,11 @@ function DocumentConverter(options) { "run": convertRun, "text": function(element, html) { html.text(element.value); + }, + "hyperlink": function(element, html) { + html.push(styles.element("a", {href: element.href})); + convertElements(element.children, html); + html.pop(); } }; return { |
