Socket
Socket
Sign inDemoInstall

remark-lint-no-trailing-spaces

Package Overview
Dependencies
3
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.0 to 1.1.0

9

index.js

@@ -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 @@

25

invalid.md

@@ -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
```
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc