aboutsummaryrefslogtreecommitdiff
path: root/mammoth
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2014-01-07 22:58:14 +0000
committerMichael Williamson <mike@zwobble.org>2014-01-07 22:58:14 +0000
commit1db3243ef38743f86b0940bd227a62c49598b740 (patch)
tree142cf3b3bf748c586d420cf1c2b0379a3173e1b4 /mammoth
parent86e37ffa1500a444b59d9ae951f4bfa0bff69caf (diff)
Allow default style map to be disabled
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