From 1db3243ef38743f86b0940bd227a62c49598b740 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Tue, 7 Jan 2014 22:58:14 +0000 Subject: Allow default style map to be disabled --- mammoth/options.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'mammoth/options.py') 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 -- cgit v1.2.3