Skip to content

Commit 9c152b6

Browse files
committed
Version 8.1.0
1 parent ba86977 commit 9c152b6

3 files changed

Lines changed: 14 additions & 6 deletions

File tree

CHANGELOG.md

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Changelog
22

3+
## Version 8.1.0
4+
5+
* Fix for too many newlines in certain cases when `preserveNewlines` option is used. Addresses [#232](https://github.com/html-to-text/node-html-to-text/issues/232);
6+
* Link and image formatters now have a `linkBrackets` option - it accepts an array of two strings (default: `['[', ']']`) or `false` to remove the brackets. Addresses [#236](https://github.com/html-to-text/node-html-to-text/issues/236);
7+
* `noLinkBrackets` formatters option is now deprecated.
8+
9+
All commits: [8.0.0...8.1.0](https://github.com/html-to-text/node-html-to-text/compare/8.0.0...8.1.0)
10+
311
## Version 8.0.0
412

513
All commits: [7.1.1...8.0.0](https://github.com/html-to-text/node-html-to-text/compare/7.1.1...8.0.0)
@@ -26,7 +34,7 @@ BREAKING CHANGE: All outermost elements matching provided selectors will be pres
2634

2735
`limits.maxBaseElements` can be used when you only need a fixed number of base elements and would like to avoid checking the rest of the source HTML document.
2836

29-
Base elements can be arranged in output text in the order of matched selectors (default, to keep it closer to the old implementation) or in the order of appearance in sourse HTML document.
37+
Base elements can be arranged in output text in the order of matched selectors (default, to keep it closer to the old implementation) or in the order of appearance in source HTML document.
3038

3139
BREAKING CHANGE: previous implementation was treating id selectors in the same way as class selectors (could match `<foo id="a b">` with `foo#a` selector). New implementation is closer to the spec and doesn't expect multiple ids on an element. You can achieve the old behavior with `foo[id~=a]` selector in case you rely on it for some poorly formatted documents (note that it has different specificity though).
3240

@@ -109,7 +117,7 @@ For the majority of changed options there is a compatibility layer that will rem
109117

110118
Because formatters are integral part of the formatting code (as the name suggests), it wasn't possible to provide a compatibility layer.
111119

112-
Please refer to the Readme to see how things are wired now, in case you were using them for anything othen than dealing with the lack of block-level tags support.
120+
Please refer to the Readme to see how things are wired now, in case you were using them for anything other than dealing with the lack of block-level tags support.
113121

114122
### Tables support was improved
115123

@@ -211,7 +219,7 @@ Node versions < 6 are no longer supported.
211219

212220
## Version 2.1.1
213221

214-
* Extra space ploblem fixed. #88
222+
* Extra space problem fixed. #88
215223

216224
## Version 2.1.0
217225

@@ -252,7 +260,7 @@ Breaking Changes:
252260
## Version 1.4.0
253261

254262
* Uppercase tag processing added. Table center support added. #56
255-
* Unuused dependencies removed.
263+
* Unused dependencies removed.
256264

257265
## Version 1.3.2
258266

package-lock.json

Lines changed: 1 addition & 1 deletion
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
@@ -1,6 +1,6 @@
11
{
22
"name": "html-to-text",
3-
"version": "8.0.0",
3+
"version": "8.1.0",
44
"description": "Advanced html to plain text converter",
55
"license": "MIT",
66
"author": {

0 commit comments

Comments
 (0)