Migrate to Netlify Today

Netlify announces the next evolution of Gatsby Cloud. Learn more

ContactSign Up
Community Plugin
View plugin on GitHub


Copies files linked to from markdown to your public folder.


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

How to use

// In your gatsby-config.js
plugins: [
    resolve: `gatsby-transformer-remark`,
    options: {
      plugins: [

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


title: My awesome blog post

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

[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.

© 2023 Gatsby, Inc.