Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

remark-lint-no-duplicate-headings-in-section

Package Overview
Dependencies
Maintainers
2
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

remark-lint-no-duplicate-headings-in-section - npm Package Compare versions

Comparing version 1.0.4 to 1.0.5

6

index.js

@@ -10,3 +10,3 @@ /**

*
* @example {"name": "valid.md"}
* @example {"name": "ok.md"}
*

@@ -29,3 +29,3 @@ * ## Alpha

*
* @example {"name": "invalid.md", "label": "input"}
* @example {"name": "not-ok.md", "label": "input"}
*

@@ -38,3 +38,3 @@ * ## Foxtrot

*
* @example {"name": "invalid.md", "label": "output"}
* @example {"name": "not-ok.md", "label": "output"}
*

@@ -41,0 +41,0 @@ * 5:1-5:9: Do not use headings with similar content per section (3:1)

{
"name": "remark-lint-no-duplicate-headings-in-section",
"version": "1.0.4",
"version": "1.0.5",
"description": "remark-lint rule to warn on duplicate headings in a section",

@@ -10,2 +10,3 @@ "license": "MIT",

"rule",
"remark-lint-rule",
"duplicate",

@@ -17,2 +18,6 @@ "heading",

"bugs": "https://github.com/remarkjs/remark-lint/issues",
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/unified"
},
"author": "Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)",

@@ -19,0 +24,0 @@ "contributors": [

@@ -22,3 +22,3 @@ <!--This file is generated-->

##### `valid.md`
##### `ok.md`

@@ -49,3 +49,3 @@ ###### In

##### `invalid.md`
##### `not-ok.md`

@@ -81,12 +81,12 @@ ###### In

```diff
...
"remarkConfig": {
"plugins": [
...
"lint",
+ "lint-no-duplicate-headings-in-section",
...
]
}
...
```

@@ -103,4 +103,4 @@

```diff
var remark = require('remark');
var report = require('vfile-reporter');
var remark = require('remark')
var report = require('vfile-reporter')

@@ -111,4 +111,4 @@ remark()

.process('_Emphasis_ and **importance**', function (err, file) {
console.error(report(err || file));
});
console.error(report(err || file))
})
```

@@ -122,4 +122,4 @@

This project has a [Code of Conduct][coc].
By interacting with this repository, organisation, or community you agree to
This project has a [code of conduct][coc].
By interacting with this repository, organization, or community you agree to
abide by its terms.

@@ -153,3 +153,3 @@

[chat-badge]: https://img.shields.io/badge/join%20the%20community-on%20spectrum-7b16ff.svg
[chat-badge]: https://img.shields.io/badge/chat-spectrum.svg

@@ -156,0 +156,0 @@ [chat]: https://spectrum.chat/unified/remark

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc