From 3bcc2096abdc4778169c1b71abe71fa27879e5ce Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Tue, 7 Jan 2014 23:09:34 +0000 Subject: Document exclusion of default style map --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index 38bbccf..274cf1b 100644 --- a/README.md +++ b/README.md @@ -91,7 +91,12 @@ with open("document.docx", "rb") as docx_file: ``` User-defined style mappings are used in preference to the default style mappings. +To stop using the default style mappings altogether, +set pass `includeDefaultStyleMap=False`: +```python + result = mammoth.convert_to_html(docx_file, style_map=style_map, include_default_style_map=False) +``` ## Writing style maps A style map is made up of a number of style mappings separated by new lines. -- cgit v1.2.3