mammoth.js/NEWS

232 lines
5.0 KiB
Plaintext

# 1.0.3
* Actually add support for table cells spanning multiple rows.
# 1.0.2
* Add support for table cells spanning multiple rows.
# 1.0.1
* Add support for table cells spanning multiple columns.
# 1.0.0
* Remove deprecated convertUnderline option.
* Officially support ID prefixes.
* Generated IDs no longer insert a hyphen after the ID prefix.
* The default ID prefix is now the empty string rather than a random number
followed by a hyphen.
* Rename mammoth.images.inline to mammoth.images.imgElement to better reflect
its behaviour.
# 0.3.33
* Improve collapsing of elements when there are empty elements.
# 0.3.32
* Allow bold and italic style mappings to be configured.
# 0.3.31
* Handle references to missing styles when reading documents.
# 0.3.30
* Improve support for lists made in LibreOffice. Specifically, this changes the
default style mapping for paragraphs with a style of "Normal" to have the
lowest precedence.
* Replace nomnom with argparse for CLI argument parsing. Usage should be the
same, but unknown arguments will now cause an exit with failure rather than
being ignored.
# 0.3.29
* Always use mc:Fallback when reading mc:AlternateContent elements.
# 0.3.28
* Avoid inserting newlines around inline elements when pretty-printing HTML.
* CLI: print warnings to stderr.
* Read v:imagedata with r:id attribute.
* Read children of v:roundrect.
* Ignore office-word:wrap, v:shadow and v:shapetype.
# 0.3.27
* Fix recursive collapsing of elements.
# 0.3.26
* Keep HTML elements open correctly when the HTML path contains no fresh
element.
* Collapse similar non-fresh HTML elements together.
* Don't escape double quotes outside of attributes.
# 0.3.25
* When the styleMap option is passed as a string, ignore lines beginning with #.
* Generate warnings for not-understood style mappings and continue, rather than
stopping with an error.
* Add support for embedded style maps.
* Add support for linked images.
# 0.3.24
* Ignore w:numPr elements without w:numId or w:ilvl children.
# 0.3.23
* Support links and images in footnotes and endnotes.
# 0.3.22
* Add support for underlines in style map.
* Add support for strikethrough.
# 0.3.21
* 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.20
* Support styles defined without a name
# 0.3.19
* Add ignoreEmptyParagraphs option, which defaults to true.
# 0.3.18
* 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.17
* Add support for hyperlinks to bookmarks in the same document.
# 0.3.16
* Add basic support for Markdown. Not all features are currently supported.
# 0.3.15
* 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.
* Update jszip to 2.4.0.
# 0.3.14
* Add support for endnotes.
# 0.3.13
* Update license-sniffer to fix license comments in mammoth.browser.js.
# 0.3.12
* Update bluebird dependency to fix operation in web workers.
# 0.3.11
* Add support for superscript and subscript text.
# 0.3.10
* Handle XML files that start with the UTF-8 BOM.
# 0.3.9
* Add support for reading Buffer instances.
# 0.3.8
* Add support for line breaks.
# 0.3.7
* Add optional underline conversion.
# 0.3.6
* Add helper `mammoth.transforms.paragraph`.
# 0.3.5
* Add `mammoth.images.inline`, and document custom image conversion.
# 0.3.4
* Add the function `mammoth.extractRawText`.
# 0.3.3
* Add support for tables.
# 0.3.2
* Add support for footnotes.
# 0.3.1
* Fix: all non-paragraph styles are treated as character styles when reading
styles from a docx document.
# 0.3.0
* Rename the existing concept of a "style name" to "style ID" to correspond to
the terminology used internally in docx files. Any document transforms that
get or set the `styleName` property should use the `styleId` property instead.
* 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']
* Use an array of raw strings rather than an array of style mappings when
passing options to convertToHtml.
* Add support for node 0.11 (tested on node 0.11.13).
# 0.2.2
* Fix: exception when bad arguments are passed into unzip.openZip.
# 0.2.1
* Fix browserify support.
# 0.2.0
* Rename mammoth.style() to mammoth.styleMapping().
* Add support for document transforms.
* Append standard style map to custom style map unless explicitly excluded.