aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/document-to-html.js16
1 files changed, 6 insertions, 10 deletions
diff --git a/lib/document-to-html.js b/lib/document-to-html.js
index baf900e..83c3b5f 100644
--- a/lib/document-to-html.js
+++ b/lib/document-to-html.js
@@ -134,7 +134,12 @@ function DocumentConversion(options) {
}
function convertUnderline(runHtml) {
- return (options.convertUnderline || defaultConvertUnderline)(runHtml);
+ var style = findStyle({type: "underline"});
+ if (style) {
+ return Html.pathToNode(style.to, [runHtml]);
+ } else {
+ return runHtml;
+ }
}
function convertRunProperty(result, elementType, defaultTagName) {
@@ -146,15 +151,6 @@ function DocumentConversion(options) {
}
}
- function defaultConvertUnderline(runHtml) {
- var style = findStyle({type: "underline"});
- if (style) {
- return Html.pathToNode(style.to, [runHtml]);
- } else {
- return runHtml;
- }
- }
-
function findStyle(element) {
for (var i = 0; i < styleMap.length; i++) {
if (styleMap[i].from.matches(element)) {