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

remark-autolink-headings

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

remark-autolink-headings - npm Package Compare versions

Comparing version 4.0.0 to 5.0.0

5

CHANGELOG.md

@@ -0,1 +1,6 @@

# 5.0.0
* Updated for remark 7.x (thanks to @wooorm).
* (Breaking) Drops support for Node 0.12.
# 4.0.0

@@ -2,0 +7,0 @@

14

dist/index.js

@@ -40,4 +40,4 @@ 'use strict';

function attacher(remark) {
var opts = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1];
function attacher() {
var opts = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};

@@ -47,9 +47,7 @@ var _behaviour$content$op = _extends({

content: contentDefaults
}, opts);
}, opts),
linkProperties = _behaviour$content$op.linkProperties,
behaviour = _behaviour$content$op.behaviour,
content = _behaviour$content$op.content;
var linkProperties = _behaviour$content$op.linkProperties;
var behaviour = _behaviour$content$op.behaviour;
var content = _behaviour$content$op.content;
if (behaviour !== wrap && !linkProperties) {

@@ -56,0 +54,0 @@ linkProperties = { 'aria-hidden': true };

{
"name": "remark-autolink-headings",
"version": "4.0.0",
"version": "5.0.0",
"description": "Automatically add links to headings in Markdown.",

@@ -12,6 +12,5 @@ "main": "dist/index.js",

"pretest": "eslint src",
"prepublish": "del-cli dist && babel src --out-dir dist --ignore /__tests__/",
"prepublish": "del-cli dist && BABEL_ENV=publish babel src --out-dir dist --ignore /__tests__/",
"report": "nyc report --reporter=html",
"test": "nyc ava",
"test-012": "nyc ava"
"test": "nyc ava"
},

@@ -27,3 +26,3 @@ "keywords": [

"devDependencies": {
"ava": "^0.15.0",
"ava": "^0.18.0",
"babel-cli": "^6.5.1",

@@ -40,7 +39,7 @@ "babel-core": "^6.5.2",

"eslint-plugin-babel": "^3.3.0",
"eslint-plugin-import": "^1.10.2",
"remark": "^5.0.1",
"remark-html": "^5.0.0",
"eslint-plugin-import": "^2.0.1",
"remark": "^7.0.0",
"remark-html": "^6.0.0",
"remark-slug": "^4.1.0",
"nyc": "^7.0.0"
"nyc": "^10.0.0"
},

@@ -47,0 +46,0 @@ "homepage": "https://github.com/ben-eb/remark-autolink-headings",

@@ -28,3 +28,3 @@ # [remark]-autolink-headings [![Build Status](https://travis-ci.org/ben-eb/remark-autolink-headings.svg?branch=master)][ci] [![NPM version](https://badge.fury.io/js/remark-autolink-headings.svg)][npm] [![Dependency Status](https://gemnasium.com/ben-eb/remark-autolink-headings.svg)][deps]

var markdown = '# Hello';
var result = remark().use([ slug, headings, html ]).process(markdown);
var result = remark().use([ slug, headings, html ]).processSync(markdown);
console.log(result);

@@ -31,0 +31,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