aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/zwobble/mammoth/DocumentConverter.java
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2016-11-19 20:17:38 +0000
committerMichael Williamson <mike@zwobble.org>2016-11-19 20:17:38 +0000
commit1c320474b93de8c90bf903f6a748e83a9aa65706 (patch)
tree24f3b1f235cbfa65680798bafd5e044f0503bb20 /src/main/java/org/zwobble/mammoth/DocumentConverter.java
parentcf51080fc233196a5bf6c40c06e1a4ec32e85d5b (diff)
Allow embedded style maps to be disabled
Diffstat (limited to 'src/main/java/org/zwobble/mammoth/DocumentConverter.java')
-rw-r--r--src/main/java/org/zwobble/mammoth/DocumentConverter.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/main/java/org/zwobble/mammoth/DocumentConverter.java b/src/main/java/org/zwobble/mammoth/DocumentConverter.java
index 3a21fed..feba5ac 100644
--- a/src/main/java/org/zwobble/mammoth/DocumentConverter.java
+++ b/src/main/java/org/zwobble/mammoth/DocumentConverter.java
@@ -52,6 +52,14 @@ public class DocumentConverter {
}
/**
+ * By default, if the document contains an embedded style map, then it is combined with the default style map.
+ * Call this to ignore any embedded style maps.
+ */
+ public DocumentConverter disableEmbeddedStyleMap() {
+ return new DocumentConverter(options.disableEmbeddedStyleMap());
+ }
+
+ /**
* Converts {@code stream} into an HTML string.
* Note that using this method instead of {@link #convertToHtml(File file)}
* means that relative paths to other files, such as images, cannot be resolved.