remark-break-line 0.0.10 → 0.0.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/index.js +2 -1
  2. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -38,7 +38,7 @@ const elementSize = {
38
38
  * @returns
39
39
  * Transform.
40
40
  */
41
- export default function remarkBreakLongLines({ maxLineLength = 80, removeLinebreaksAndMultipleSpaces = false, mergableElements = [] } = {}) {
41
+ export default function remarkBreakLongLines({ maxLineLength = Number.POSITIVE_INFINITY, removeLinebreaksAndMultipleSpaces = true, mergableElements = ['emphasis'] } = {}) {
42
42
  /**
43
43
  * Transform.
44
44
  *
@@ -101,6 +101,7 @@ export default function remarkBreakLongLines({ maxLineLength = 80, removeLinebre
101
101
  first.children.push(middel);
102
102
  first.children.push(...last.children);
103
103
  n.children.splice(i + 1, 2);
104
+ i--;
104
105
 
105
106
  }
106
107
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "remark-break-line",
3
- "version": "0.0.10",
3
+ "version": "0.0.11",
4
4
  "type": "module",
5
5
  "description": "",
6
6
  "keywords": [