NEWS 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483
  1. # 1.8.0
  2. * Add style mapping for highlights.
  3. # 1.7.2
  4. * Remove the use of the path module from common code used by browser builds.
  5. This should remove the need to polyfill path in the browser.
  6. # 1.7.1
  7. * Handle numbering level definitions without an explicit format.
  8. * Switch the precedence of numbering properties in paragraph properties and the
  9. numbering in paragraph styles so that the numbering properties in paragraph
  10. properties takes precedence.
  11. # 1.7.0
  12. * Support attributes in HTML paths in style mappings.
  13. * Improve error message when failing to find the body element in a document.
  14. * Add support for the strict document format.
  15. # 1.6.0
  16. * Add transformDocument to the TypeScript declarations.
  17. * Support merged paragraphs when revisions are tracked.
  18. * Use xmldom instead of sax to parse XML documents. This should remove the need
  19. to polyfill stream in the browser.
  20. * Adjust the internal implementation to remove the use of Buffer on the critical
  21. path, and provide APIs to read images and documents with embedded style maps
  22. without using Buffer. This should remove the need to polyfill Buffer in the
  23. browser. Since TextDecoder is now used, the minimum version of node.js is now
  24. v12.
  25. * Remove the use of the util module. This should remove the need to polyfill
  26. util in the browser.
  27. # 1.5.1
  28. * Fix: npm 7 changed the behaviour of prepublish, causing the browser build not
  29. to be updated before publishing to npm. We now use prepare instead of
  30. prepublish, which has the same behaviour that prepublish previously had.
  31. # 1.5.0
  32. * Only use the alt text of image elements as a fallback. If an alt attribute is
  33. returned from the function passed to mammoth.images.imgElement, that value
  34. will now be preferred to the alt text of the image element.
  35. # 1.4.21
  36. * Ignore w:u elements when w:val is missing.
  37. # 1.4.20
  38. * Emit warning instead of throwing exception when image file cannot be found for
  39. a:blip elements.
  40. # 1.4.19
  41. * Add TypeScript declarations.
  42. # 1.4.18
  43. * When extracting raw text, convert tab elements to tab characters.
  44. * Handle internal hyperlinks created with complex fields.
  45. * Update JSZip to 3.2.0. This addresses CVE-2021-23413 in JSZip.
  46. # 1.4.17
  47. * Handle w:num with invalid w:abstractNumId.
  48. * Update underscore to 1.13.1.
  49. # 1.4.16
  50. * Convert symbols in supported fonts to corresponding Unicode characters.
  51. # 1.4.15
  52. * Support numbering defined by paragraph style.
  53. # 1.4.14
  54. * Add style mapping for all caps.
  55. # 1.4.13
  56. * Use package-lock.json instead of npm-shrinkwrap.json.
  57. # 1.4.12
  58. * Handle underline elements where w:val is "none".
  59. # 1.4.11
  60. * Re-publishing to remove superfluous files.
  61. # 1.4.10
  62. * Read font size for runs.
  63. * Support soft hyphens.
  64. # 1.4.9
  65. * Allow hyperlinks to be collapsed.
  66. # 1.4.8
  67. * Improve list support by following w:numStyleLink in w:abstractNum.
  68. # 1.4.7
  69. * Update xmlbuilder dependency.
  70. # 1.4.6
  71. * Fix: default style mappings caused footnotes, endnotes and comments
  72. containing multiple paragraphs to be converted into a single paragraph.
  73. # 1.4.5
  74. * When using the pretty HTML writer, don't format HTML inside pre elements.
  75. * Read the children of v:rect elements.
  76. # 1.4.4
  77. * Parse paragraph indents.
  78. * Read part paths using relationships. This improves support for documents
  79. created by Word Online.
  80. # 1.4.3
  81. * Add style mapping for small caps.
  82. * Add style mapping for tables.
  83. # 1.4.2
  84. * Read children of v:group elements.
  85. # 1.4.1
  86. * Read w:noBreakHyphen elements as non-breaking hyphen characters.
  87. # 1.4.0
  88. * Extract the default data URI image converter to the images module.
  89. * Add anchor on hyperlinks as fragment if present.
  90. * Convert target frames on hyperlinks to targets on anchors.
  91. * Detect header rows in tables and convert to thead > tr > th.
  92. # 1.3.6
  93. * Handle complex fields that do not have a "separate" fldChar.
  94. # 1.3.5
  95. * Add transforms.run.
  96. # 1.3.4
  97. * Read children of w:object elements.
  98. # 1.3.3
  99. * Handle hyperlinks created with complex fields.
  100. # 1.3.2
  101. * Handle absolute paths within zip files. This should fix an issue where some
  102. images within a document couldn't be found.
  103. # 1.3.1
  104. * Add getDescendants() and getDescendantsOfType() to transforms module.
  105. * Add font property to runs.
  106. # 1.3.0
  107. * Allow style names to be mapped by prefix. For instance:
  108. r[style-name^='Code '] => code
  109. * Add default style mappings for Heading 5 and Heading 6.
  110. * Allow escape sequences in style IDs, style names and CSS class names.
  111. * Allow a separator to be specified when HTML elements are collapsed.
  112. * Add includeEmbeddedStyleMap option to allow embedded style maps to be
  113. disabled.
  114. * Include embedded styles when explicit style map is passed.
  115. # 1.2.5
  116. * Ignore bold, italic, underline and strikethrough elements that have a value of
  117. false or 0.
  118. # 1.2.4
  119. * Ignore v:imagedata elements without relationship ID with warning.
  120. # 1.2.3
  121. * Expect end token when parsing style mappings. This causes warnings to be
  122. emitted instead of silenting ignoring unparsed tokens.
  123. # 1.2.2
  124. * Ignore blank lines in style map.
  125. # 1.2.1
  126. * Use alt text title as alt text for images when the alt text description is
  127. missing entirely.
  128. # 1.2.0
  129. * Throw more informative error when word/document.xml cannot be found.
  130. * Generate messages of type "error" instead of "warning" when image conversion
  131. throws an exception.
  132. * Use alt text title as alt text for images when the alt text description is
  133. blank.
  134. # 1.1.0
  135. * Add support for comments.
  136. # 1.0.4
  137. * Add support for w:sdt elements. This allows the bodies of content controls,
  138. such as bibliographies, to be converted.
  139. * Avoid stack overflows when elements have many children.
  140. # 1.0.3
  141. * Actually add support for table cells spanning multiple rows.
  142. # 1.0.2
  143. * Add support for table cells spanning multiple rows.
  144. # 1.0.1
  145. * Add support for table cells spanning multiple columns.
  146. # 1.0.0
  147. * Remove deprecated convertUnderline option.
  148. * Officially support ID prefixes.
  149. * Generated IDs no longer insert a hyphen after the ID prefix.
  150. * The default ID prefix is now the empty string rather than a random number
  151. followed by a hyphen.
  152. * Rename mammoth.images.inline to mammoth.images.imgElement to better reflect
  153. its behaviour.
  154. # 0.3.33
  155. * Improve collapsing of elements when there are empty elements.
  156. # 0.3.32
  157. * Allow bold and italic style mappings to be configured.
  158. # 0.3.31
  159. * Handle references to missing styles when reading documents.
  160. # 0.3.30
  161. * Improve support for lists made in LibreOffice. Specifically, this changes the
  162. default style mapping for paragraphs with a style of "Normal" to have the
  163. lowest precedence.
  164. * Replace nomnom with argparse for CLI argument parsing. Usage should be the
  165. same, but unknown arguments will now cause an exit with failure rather than
  166. being ignored.
  167. # 0.3.29
  168. * Always use mc:Fallback when reading mc:AlternateContent elements.
  169. # 0.3.28
  170. * Avoid inserting newlines around inline elements when pretty-printing HTML.
  171. * CLI: print warnings to stderr.
  172. * Read v:imagedata with r:id attribute.
  173. * Read children of v:roundrect.
  174. * Ignore office-word:wrap, v:shadow and v:shapetype.
  175. # 0.3.27
  176. * Fix recursive collapsing of elements.
  177. # 0.3.26
  178. * Keep HTML elements open correctly when the HTML path contains no fresh
  179. element.
  180. * Collapse similar non-fresh HTML elements together.
  181. * Don't escape double quotes outside of attributes.
  182. # 0.3.25
  183. * When the styleMap option is passed as a string, ignore lines beginning with #.
  184. * Generate warnings for not-understood style mappings and continue, rather than
  185. stopping with an error.
  186. * Add support for embedded style maps.
  187. * Add support for linked images.
  188. # 0.3.24
  189. * Ignore w:numPr elements without w:numId or w:ilvl children.
  190. # 0.3.23
  191. * Support links and images in footnotes and endnotes.
  192. # 0.3.22
  193. * Add support for underlines in style map.
  194. * Add support for strikethrough.
  195. # 0.3.21
  196. * Add basic support for text boxes. The contents of the text box are treated as
  197. a separate paragraph that appears after the paragraph containing the text box.
  198. # 0.3.20
  199. * Support styles defined without a name
  200. # 0.3.19
  201. * Add ignoreEmptyParagraphs option, which defaults to true.
  202. # 0.3.18
  203. * Make style names case-insensitive in style mappings. This should make style
  204. mappings easier to write, especially since Microsoft Word sometimes represents
  205. style names in the UI differently from in the style definition. For instance,
  206. the style displayed in Word as "Heading 1" has a style name of "heading 1".
  207. This hopefully shouldn't cause an issue for anyone, but if you were relying
  208. on case-sensitivity, please do get in touch.
  209. # 0.3.17
  210. * Add support for hyperlinks to bookmarks in the same document.
  211. # 0.3.16
  212. * Add basic support for Markdown. Not all features are currently supported.
  213. # 0.3.15
  214. * Add default style mappings for builtin footnote and endnote styles in
  215. Microsoft Word and LibreOffice.
  216. * Allow style mappings with a zero-element HTML path.
  217. * Emit warnings when image types are unlikely to be supported by web browsers.
  218. * Update jszip to 2.4.0.
  219. # 0.3.14
  220. * Add support for endnotes.
  221. # 0.3.13
  222. * Update license-sniffer to fix license comments in mammoth.browser.js.
  223. # 0.3.12
  224. * Update bluebird dependency to fix operation in web workers.
  225. # 0.3.11
  226. * Add support for superscript and subscript text.
  227. # 0.3.10
  228. * Handle XML files that start with the UTF-8 BOM.
  229. # 0.3.9
  230. * Add support for reading Buffer instances.
  231. # 0.3.8
  232. * Add support for line breaks.
  233. # 0.3.7
  234. * Add optional underline conversion.
  235. # 0.3.6
  236. * Add helper `mammoth.transforms.paragraph`.
  237. # 0.3.5
  238. * Add `mammoth.images.inline`, and document custom image conversion.
  239. # 0.3.4
  240. * Add the function `mammoth.extractRawText`.
  241. # 0.3.3
  242. * Add support for tables.
  243. # 0.3.2
  244. * Add support for footnotes.
  245. # 0.3.1
  246. * Fix: all non-paragraph styles are treated as character styles when reading
  247. styles from a docx document.
  248. # 0.3.0
  249. * Rename the existing concept of a "style name" to "style ID" to correspond to
  250. the terminology used internally in docx files. Any document transforms that
  251. get or set the `styleName` property should use the `styleId` property instead.
  252. * Allow paragraphs and runs to be matched by style name. For instance, to match
  253. a paragraph with the style name `Heading 1`:
  254. p[style-name='Heading 1']
  255. * Use an array of raw strings rather than an array of style mappings when
  256. passing options to convertToHtml.
  257. * Add support for node 0.11 (tested on node 0.11.13).
  258. # 0.2.2
  259. * Fix: exception when bad arguments are passed into unzip.openZip.
  260. # 0.2.1
  261. * Fix browserify support.
  262. # 0.2.0
  263. * Rename mammoth.style() to mammoth.styleMapping().
  264. * Add support for document transforms.
  265. * Append standard style map to custom style map unless explicitly excluded.