NEWS 8.8 KB

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