0.0.4 • Published 7 years ago

gatsby-remark-external-links v0.0.4

Weekly downloads
13,579
License
MIT
Repository
github
Last release
7 years ago

gatsby-remark-external-links

Adds the target and rel attributes to external links in markdown.

This is a gatsby port of the remark-external-links remark plugin.

Usage

  1. Install plugin to your site:
yarn add gatsby-remark-external-links
  1. Add following to your gatsby-config.js:
    plugins: [      
      {
        resolve: `gatsby-transformer-remark`,
        options: {
          plugins: [
          {
            resolve: "gatsby-remark-external-links",
            options: {
              target: "_self",
              rel: "nofollow"
            }
          }
          ]
        }
      },
  1. Restart gastby.

API

options

target

Type: string Default: _blank

Specifies where to display the linked URL. The value should be on of : _self, _blank, _parent, _top

You can specify null to not add the target attribute to your links

rel

Type: string Default: nofollow noopener noreferrer

Specifies the relationship of the target object to the link object. The value is a space-separated list of link types.

You can specify null to not add the rel attribute to your links

When using target, consider adding rel="noopener noreferrer" to avoid exploitation of the window.opener API.

License

MIT

@pil0t/gatsby-theme-novela@thirdwave-network/thirdwave-gatsby-theme@kyrelldixon/gatsby-theme-novelagatsby-theme-lumencustom-gatsby-theme-novela@ekampf/gatsby-theme-networked-thought@fengshangwuqi/gatsby-config@kennethwangdotdev/gatsby-theme-dotdevbrawl-capped-webpagegatsby-theme-fencing@everything-registry/sub-chunk-1723temp-gatsby-theme@draftbox-co/gatsby-wordpress-novela-theme@draftbox-co/gatsby-ghost-novela-theme@cratosw/gatsby-antd@cthsiao/gatsby-theme-novela-mod@boomerang-io/gatsby-theme-boomerangjesielviana-gatsby-theme-docs-corejesielviana-gatsby-theme-minimal-blog-core@antv/gatsby-theme-antv@antv/gatsby-theme@amorist/gatsby-theme-antd@alec.brunelle/gatsby-theme-novela@afuh-test/gatsby-theme-minimal@afuh/gatsby-theme-minimal@agney/gatsby-theme-advent@binance-name/gatsby-theme-novela@clifmo/gatsby-theme-novela@adamquadmon/gatsby-theme-lucifero@codinators/gatsby-theme-blog@dcl/docs-site@davidway/gatsby-theme-novela@hpprc/gatsby-theme-blog@getzeroday/gatsby-theme-novela@getecho/gatsby-theme-echo@mosaic-io/gatsby-theme-novela-local-blog-fork@narative/gatsby-theme-novela@negati-ve/gatsby-theme-novela@eshlox/gatsby-theme-axii@jlongster/gatsby-theme-novela@jampile/gatsby-theme-conference@hyperobjekt/gatsby-theme-hypercore@dvcorg/gatsby-theme-iterative@juvoni/gatsby-theme-networked-thought@platformos/gatsby-theme-platformos-docskit@pusdn/gatsby-theme-antv@scaleph/scaleph-gatsby-theme@pil0t/gatsby-theme-novela-dolim@pewriebontal/gatsby-theme-novela@pitayan/gatsby-theme-pitayan@opensumi/gatsby-thememikatre-themeseeds-docshemingway-clilmnts-gatsby-ts-skeletonmberneti@whey/gatsby-theme-whey@weknow/gatsby-theme-drupal-boina@thirdwave-network/gatsby-theme@syfxlin/gatsby-theme-coline@zalastax/nolb-gatsby-r@zahradnik-io/gatsby-theme-novela@sudaraka94/gatsby-theme-novela@tantrongtt/gatsby-theme-tronga-nice-bloggo-themeantdsitedaudr-blogblog-themegatsby-tech-blog-themegatsby-theme-art-graphgatsby-theme-carbon-docsgatsby-theme-catalyst-coregatsby-theme-conegatsby-theme-cone-ocgatsby-theme-coacogatsby-all-pack-theme-startergatsby-theme-dev-bloggatsby-theme-documentsgatsby-theme-dotdevgatsby-theme-devdocgatsby-theme-docs-systemgatsby-starter-location-githubgatsby-starter-lumengatsby-starter-hero-bloggatsby-starter-unogatsby-theme-medium-to-own-bloggatsby-theme-modern-portfoliogatsby-theme-operettagatsby-theme-pawan-bloggatsby-theme-personal-bloggatsby-theme-portfolio-caragatsby-theme-nestxgatsby-theme-networked-thoughtgatsby-theme-projectagatsby-theme-traininggatsby-theme-hypercoregatsby-theme-hyperobjekt-coregatsby-theme-iotgatsby-theme-jamfire-conferencegatsby-theme-hansin
0.0.4

7 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago