You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+12-4Lines changed: 12 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,13 @@
1
1
# Changelog
2
2
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
+
3
11
## Version 8.0.0
4
12
5
13
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
26
34
27
35
`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.
28
36
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.
30
38
31
39
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).
32
40
@@ -109,7 +117,7 @@ For the majority of changed options there is a compatibility layer that will rem
109
117
110
118
Because formatters are integral part of the formatting code (as the name suggests), it wasn't possible to provide a compatibility layer.
111
119
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.
113
121
114
122
### Tables support was improved
115
123
@@ -211,7 +219,7 @@ Node versions < 6 are no longer supported.
211
219
212
220
## Version 2.1.1
213
221
214
-
* Extra space ploblem fixed. #88
222
+
* Extra space problem fixed. #88
215
223
216
224
## Version 2.1.0
217
225
@@ -252,7 +260,7 @@ Breaking Changes:
252
260
## Version 1.4.0
253
261
254
262
* Uppercase tag processing added. Table center support added. #56
0 commit comments