aboutsummaryrefslogtreecommitdiff
path: root/lib/document-to-html.js
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2014-07-18 15:00:53 +0100
committerMichael Williamson <mike@zwobble.org>2014-07-18 15:00:53 +0100
commitfe8918642d9d95bbc099993b96e845bdc17215e1 (patch)
treee0b7be441a816beec94faaa2b51141ac40cc51f4 /lib/document-to-html.js
parentdc42c949f63688ebc953d0427d86c0771dd52f05 (diff)
Ignore underline by default
Diffstat (limited to 'lib/document-to-html.js')
-rw-r--r--lib/document-to-html.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/document-to-html.js b/lib/document-to-html.js
index 35fb3e6..d5be742 100644
--- a/lib/document-to-html.js
+++ b/lib/document-to-html.js
@@ -100,12 +100,12 @@ function DocumentConversion(options) {
if (run.isBold) {
runHtml.open(htmlPaths.element("strong"));
}
- if (run.isUnderline) {
- runHtml.open(htmlPaths.element("u"));
- }
if (run.isItalic) {
runHtml.open(htmlPaths.element("em"));
}
+ if (run.isUnderline && options.convertUnderline) {
+ options.convertUnderline(runHtml);
+ }
convertElements(run.children, runHtml, messages, function(err) {
if (err) {
callback(err);