Skip to content

Commit d960c11

Browse files
committed
html-to-text version 9.0.1
1 parent 69e3a24 commit d960c11

File tree

4 files changed

+21
-11
lines changed

4 files changed

+21
-11
lines changed

package-lock.json

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"chai": "^4.3.7",
3636
"concurrently": "^7.6.0",
3737
"copyfiles": "^2.4.1",
38-
"eslint": "^8.28.0",
38+
"eslint": "^8.29.0",
3939
"eslint-plugin-filenames": "^1.3.2",
4040
"eslint-plugin-import": "^2.26.0",
4141
"eslint-plugin-jsdoc": "^39.6.4",

packages/html-to-text/CHANGELOG.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
# Changelog
22

3+
## Version 9.0.1
4+
5+
* fixed a broken link in readme: [#262](https://github.com/html-to-text/node-html-to-text/pull/262);
6+
* test and documented the usage of existing formatters from custom formatters in readme: [#263](https://github.com/html-to-text/node-html-to-text/issues/263);
7+
* fixed jsdoc comment for `BlockTextBuilder.closeTable`: [#264](https://github.com/html-to-text/node-html-to-text/issues/264);
8+
* added missing entry in the 9.0.0 changelog below regarding `BlockTextBuilder.closeTable`.
9+
10+
All commits: [9.0.0...9.0.1](https://github.com/html-to-text/node-html-to-text/compare/9.0.0...9.0.1)
11+
312
## Version 9.0.0
413

514
All commits: [8.2.1...9.0.0](https://github.com/html-to-text/node-html-to-text/compare/8.2.1...9.0.0)
@@ -55,7 +64,8 @@ New generic formatters `blockString`, `blockTag`, `blockHtml`, `inlineString`, `
5564
* Some logic for making lists is moved to BlockTextBuilder and can be reused for custom lists (`openList`, `openListItem`, `closeListItem`, `closeList`). Addresses [#238](https://github.com/html-to-text/node-html-to-text/issues/238);
5665
* `startNoWrap`, `stopNoWrap` - allows to keep local inline content in a single line regardless of wrapping options;
5766
* `addLiteral` - it is like `addInline` but circumvents most of the text processing logic. This should be preferred when inserting markup elements;
58-
* It is now possible to provide a metadata object along with the HTML string to convert. Metadata object is available for custom formatters via `builder.metadata`. This allows to compile the converter once and still being able to supply per-document data. Metadata object is supplied as the last optional argument to `convert` function and the function returned by `compile` function.
67+
* It is now possible to provide a metadata object along with the HTML string to convert. Metadata object is available for custom formatters via `builder.metadata`. This allows to compile the converter once and still being able to supply per-document data. Metadata object is supplied as the last optional argument to `convert` function and the function returned by `compile` function;
68+
* Breaking change for those who dare to write their own table formatter (in case there is anyone) - `closeTable` function got a required property in the options object - `tableToString` function, and previously existed `colSpacing` and `rowSpacing` are removed (now a responsibility of the `tableToString` function).
5969

6070
### Other
6171

packages/html-to-text/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "html-to-text",
3-
"version": "9.0.0",
3+
"version": "9.0.1",
44
"description": "Advanced html to plain text converter",
55
"keywords": [
66
"html",

0 commit comments

Comments
 (0)