remark-lint-no-trailing-spaces
Advanced tools
Comparing version 1.0.0 to 1.1.0
@@ -6,2 +6,7 @@ var visit = require('unist-util-visit'); | ||
/* | ||
Lines that are just space characters don't get detected by visit(), | ||
which is why we loop through lines manually. | ||
*/ | ||
for (var i = 0; i < lines.length; i++) { | ||
@@ -12,4 +17,5 @@ if (/^\s|\s$/.test(lines[i])) { | ||
} | ||
/* | ||
visit(ast, function (node) { | ||
// Does not actually work when there is emphasis mid-sentence | ||
if (node.type === 'text') { | ||
@@ -21,2 +27,3 @@ if (/\s$/.test(node.value)) { | ||
}); | ||
*/ | ||
} | ||
@@ -23,0 +30,0 @@ |
@@ -1,12 +0,13 @@ | ||
# Heading level 1 | ||
Some text. | ||
- A list item | ||
- A list item | ||
## Heading level 2 | ||
```js | ||
some code | ||
``` | ||
# Heading level 1 | ||
Some text withXXXXXXXXXXXXX *YYYYYYYYYstrong* ZZZZZZZZZstuff. | ||
- A list item | ||
- A list item | ||
## Heading level 2 | ||
```js | ||
some code | ||
``` | ||
{ | ||
"name": "remark-lint-no-trailing-spaces", | ||
"version": "1.0.0", | ||
"version": "1.1.0", | ||
"author": "Jonathan Verrecchia - @verekia", | ||
@@ -5,0 +5,0 @@ "repository": "verekia/remark-lint-no-trailing-spaces", |
# Heading level 1 | ||
Some text. | ||
Some text with *strong* stuff. | ||
@@ -10,4 +10,4 @@ - A list item | ||
``` | ||
```js | ||
some code | ||
``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
54574
26