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

gatsby-remark-copy-linked-files

Package Overview
Dependencies
Maintainers
1
Versions
467
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gatsby-remark-copy-linked-files

Find files which are linked to from markdown and copy them to the public directory

  • 1.0.0-alpha14-alpha.e5097827
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
17K
decreased by-9.12%
Maintainers
1
Weekly downloads
 
Created
Source

gatsby-remark-copy-linked-files

Copies files linked to from markdown to your public folder.

Install

npm install --save gatsby-remark-copy-linked-files

How to use

// In your gatsby-config.js
plugins: [
  {
    resolve: `gatsby-transformer-remark`,
    options: {
      plugins: [
        `gatsby-remark-copy-linked-files`,
      ]
    }
  }
]

Then in your Markdown files, simply link to the file you desire to reference.

E.g.


---
title: My awesome blog post
---

Hey everyone, I just made a sweet PDF with lots of interesting stuff in
it.

[Download it now](my-awesome-pdf.pdf)

my-awesome-pdf.pdf should be in the same directory as the markdown file. When you build your site, the file will be copied to the public folder and the markdown HTML will be modified to point to it.

Keywords

FAQs

Package last updated on 10 May 2017

Did you know?

Socket

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.

Install

Related posts

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