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

gatsby-remark-autolink-headers

Package Overview
Dependencies
Maintainers
2
Versions
535
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gatsby-remark-autolink-headers - npm Package Compare versions

Comparing version 1.5.0-alpha.22c8a6f1 to 1.5.0-alpha.3f307d61

4

gatsby-browser.js
"use strict";
var scrollToHash = function scrollToHash(offsetY) {
// Make sure React has had a change to flush to DOM first.
// Make sure React has had a chance to flush to DOM first.
setTimeout(function () {
var hash = window.location.hash.replace("#", "");
var hash = window.decodeURI(window.location.hash.replace("#", ""));
if (hash !== "") {

@@ -8,0 +8,0 @@ var element = document.getElementById(hash);

@@ -19,3 +19,3 @@ "use strict";

var script = "\n document.addEventListener(\"DOMContentLoaded\", function(event) {\n var hash = location.hash.replace('#', '')\n if (hash !== '') {\n var element = document.getElementById(hash)\n if (element) {\n var offset = element.offsetTop\n // Wait for the browser to finish rendering before scrolling.\n setTimeout((function() {\n window.scrollTo(0, offset - " + offsetY + ")\n }), 0)\n }\n }\n })\n ";
var script = "\n document.addEventListener(\"DOMContentLoaded\", function(event) {\n var hash = window.decodeURI(location.hash.replace('#', ''))\n if (hash !== '') {\n var element = document.getElementById(hash)\n if (element) {\n var offset = element.offsetTop\n // Wait for the browser to finish rendering before scrolling.\n setTimeout((function() {\n window.scrollTo(0, offset - " + offsetY + ")\n }), 0)\n }\n }\n })\n ";

@@ -22,0 +22,0 @@ return setHeadComponents([_react2.default.createElement(

{
"name": "gatsby-remark-autolink-headers",
"description": "Gatsby plugin to autolink headers in markdown processed by Remark",
"version": "1.5.0-alpha.22c8a6f1",
"version": "1.5.0-alpha.3f307d61",
"author": "Kyle Mathews <mathews.kyle@gmail.com>",
"dependencies": {
"babel-runtime": "6.26.0",
"babel-runtime": "^6.26.0",
"github-slugger": "^1.1.1",

@@ -13,3 +13,4 @@ "mdast-util-to-string": "^1.0.2",

"devDependencies": {
"babel-cli": "^6.24.1"
"babel-cli": "^6.26.0",
"cross-env": "^5.0.5"
},

@@ -25,4 +26,5 @@ "keywords": [

"build": "babel src --out-dir . --ignore __tests__",
"watch": "babel -w src --out-dir . --ignore __tests__"
"watch": "babel -w src --out-dir . --ignore __tests__",
"prepublish": "cross-env NODE_ENV=production npm run build"
}
}
# gatsby-remark-autolink-headers
Adds Github-style links to `MarkdownRemark` headers.
Adds GitHub-style links to `MarkdownRemark` headers.

@@ -17,8 +17,6 @@ ## Install

options: {
plugins: [
`gatsby-remark-autolink-headers`,
]
}
}
]
plugins: [`gatsby-remark-autolink-headers`],
},
},
];
```
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