diff options
| author | Michael Williamson <mike@zwobble.org> | 2014-01-07 22:58:47 +0000 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2014-01-07 22:58:47 +0000 |
| commit | d34fad18b05411c8dea72c7ef684b604b023bfe2 (patch) | |
| tree | 6432ab99d642d5c610649d315a157a89d563c4d6 | |
| parent | 1db3243ef38743f86b0940bd227a62c49598b740 (diff) | |
Update documentation to refer to style_map rather than styles
| -rw-r--r-- | README.md | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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. |
