From d34fad18b05411c8dea72c7ef684b604b023bfe2 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Tue, 7 Jan 2014 22:58:47 +0000 Subject: Update documentation to refer to style_map rather than styles --- README.md | 4 ++-- 1 file 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. -- cgit v1.2.3