Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
gatsby-remark-use-frontmatter-path
Advanced tools
If markdown file has a relative url to another markdown file then url will be replaced by frontmatter path value.
If your markdown files have frontmatter path
param then with this plugin you obtain converted links in your Gatsby pages.
So in GitHub you keep normal links between md files. And in Gatsby you will have path
links.
For example, given the following project directory structure:
./docs/
├── article.md
├── notes/
├──── copyright.md
./article.md
---
title: 'My article'
path: '/my_article'
---
Some text with [link](./notes/copyright.md)
./notes/copyright.md
---
title: 'My article'
path: '/copyright'
---
Read main [article](../article.md)
With this plugin all relative links will be transformed to:
// in ./article.md
- Some text with [link](./notes/copyright.md)
+ Some text with [link](/copyright)
// in ./notes/copyright.md
- Read main [article](../article.md)
+ Read main [article](/my_article)
npm install --save gatsby-remark-use-frontmatter-path
// In your gatsby-config.js
plugins: [
{
resolve: 'gatsby-transformer-remark',
options: {
plugins: ['gatsby-remark-use-frontmatter-path'],
},
},
];
FAQs
If markdown file has a relative url to another markdown file then url will be replaced by frontmatter path value.
The npm package gatsby-remark-use-frontmatter-path receives a total of 2 weekly downloads. As such, gatsby-remark-use-frontmatter-path popularity was classified as not popular.
We found that gatsby-remark-use-frontmatter-path demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.