blob: ea5e806f244c018e29ad7eb31aacf43b4e38b206 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
|
# 0.3.20
* Add support for linked images.
# 0.3.19
* Fix: cannot extract raw text from elements without children
# 0.3.18
* Support links and images in footnotes and endnotes.
# 0.3.17
* Add support for underlines in style map.
* Add support for strikethrough.
# 0.3.16
* Add basic support for text boxes. The contents of the text box are treated as
a separate paragraph that appears after the paragraph containing the text box.
# 0.3.15
* Support styles defined without a name
# 0.3.14
* Add ignore_empty_paragraphs option, which defaults to True.
# 0.3.13
* Always use forward slashes in ZIP paths. This should fix image handling on
Windows.
# 0.3.12
* Make style names case-insensitive in style mappings. This should make style
mappings easier to write, especially since Microsoft Word sometimes represents
style names in the UI differently from in the style definition. For instance,
the style displayed in Word as "Heading 1" has a style name of "heading 1".
This hopefully shouldn't cause an issue for anyone, but if you were relying
on case-sensitivity, please do get in touch.
# 0.3.11
* Add support for hyperlinks to bookmarks in the same document.
# 0.3.10
* Add basic support for Markdown. Not all features are currently supported.
# 0.3.9
* Add default style mappings for builtin footnote and endnote styles in
Microsoft Word and LibreOffice.
* Allow style mappings with a zero-element HTML path.
* Emit warnings when image types are unlikely to be supported by web browsers.
# 0.3.8
* Add support for endnotes.
# 0.3.7
* Add support for superscript and subscript text.
# 0.3.6
* Add support for footnotes.
# 0.3.5
* Add support for line breaks.
# 0.3.4
* Add optional underline conversion.
# 0.3.3
* Add `mammoth.images.inline`, and document custom image conversion.
# 0.3.2
* Add the function `mammoth.extract_raw_text`.
# 0.3.1
* Add support for tables
# 0.3.0
* Rename --styles CLI argument to --style-map.
* Rename styles argument in convert_to_html to style_map.
* Allow paragraphs and runs to be matched by style name. For instance, to match
a paragraph with the style name `Heading 1`:
p[style-name='Heading 1']
|