summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2014-01-07 22:58:47 +0000
committerMichael Williamson <mike@zwobble.org>2014-01-07 22:58:47 +0000
commitd34fad18b05411c8dea72c7ef684b604b023bfe2 (patch)
tree6432ab99d642d5c610649d315a157a89d563c4d6
parent1db3243ef38743f86b0940bd227a62c49598b740 (diff)
Update documentation to refer to style_map rather than styles
-rw-r--r--README.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/README.md b/README.md
index 8a0dc1c..4f4f418 100644
--- a/README.md
+++ b/README.md
@@ -77,13 +77,13 @@ and paragraphs with the style `SubSectionTitle` should be converted to `h2` elem
```python
import mammoth
-styles = """
+style_map = """
p.SectionTitle => h1:fresh
p.SubSectionTitle => h2:fresh
"""
with open("document.docx", "rb") as docx_file:
- result = mammoth.convert_to_html(docx_file, styles=styles)
+ result = mammoth.convert_to_html(docx_file, style_map=style_map)
```
User-defined style mappings are used in preference to the default style mappings.