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

rehype-autolink-headings

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rehype-autolink-headings - npm Package Compare versions

Comparing version 2.0.1 to 2.0.2

9

index.js
'use strict';
var xtend = require('xtend');
var extend = require('extend');
var visit = require('unist-util-visit');

@@ -15,3 +15,4 @@ var has = require('hast-util-has-property');

tagName: 'span',
properties: {className: ['icon', 'icon-link']}
properties: {className: ['icon', 'icon-link']},
children: []
};

@@ -54,3 +55,3 @@

var child = icon(node);
child.children = content.concat();
child.children = extend(true, content);
node.children[methods[behavior]](child);

@@ -63,5 +64,5 @@ }

tagName: 'a',
properties: xtend(props, {href: '#' + node.properties.id})
properties: extend({}, props, {href: '#' + node.properties.id})
};
}
}
{
"name": "rehype-autolink-headings",
"version": "2.0.1",
"version": "2.0.2",
"description": "Add links to headings in HTML",

@@ -23,6 +23,6 @@ "license": "MIT",

"dependencies": {
"extend": "^3.0.1",
"hast-util-has-property": "^1.0.0",
"hast-util-is-element": "^1.0.0",
"unist-util-visit": "^1.1.0",
"xtend": "^4.0.1"
"unist-util-visit": "^1.1.0"
},

@@ -37,3 +37,3 @@ "devDependencies": {

"rehype": "^5.0.0",
"remark-cli": "^3.0.0",
"remark-cli": "^4.0.0",
"remark-preset-wooorm": "^3.0.0",

@@ -40,0 +40,0 @@ "tape": "^4.0.0",

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