aboutsummaryrefslogtreecommitdiff
path: root/mammoth
diff options
context:
space:
mode:
Diffstat (limited to 'mammoth')
-rw-r--r--mammoth/options.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/mammoth/options.py b/mammoth/options.py
index a2e32b7..9d51b48 100644
--- a/mammoth/options.py
+++ b/mammoth/options.py
@@ -3,8 +3,10 @@ from . import style_reader, lists
def read_options(options):
custom_style_map = _read_style_map(options.get("style_map") or "")
+ include_default_style_map = options.get("include_default_style_map", True)
- options["style_map"] = custom_style_map + _default_style_map
+ options["style_map"] = custom_style_map + \
+ (_default_style_map if include_default_style_map else [])
return options