0.0.4 • Published 6 years ago

gatsby-remark-external-links v0.0.4

Weekly downloads
13,579
License
MIT
Repository
github
Last release
6 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-1723@thirdwave-network/gatsby-theme@zahradnik-io/gatsby-theme-novelagatsby-starter-hero-bloggatsby-starter-location-githubgatsby-starter-lumengatsby-theme-hansingatsby-theme-hypercoregatsby-theme-hyperobjekt-coregatsby-theme-iotgatsby-theme-jamfire-conferencegatsby-theme-jumpalottahigh-bloggatsby-theme-ghostgatsby-theme-golden-condorgatsby-theme-carbon-docsgatsby-theme-catalyst-coregatsby-theme-traininggatsby-theme-zhgatsby-theme-dev-bloggatsby-theme-devdocgatsby-theme-docs-systemgatsby-theme-conegatsby-theme-cone-ocgatsby-theme-documentsgatsby-theme-dotdevgatsby-theme-coacogatsby-starter-unogatsby-tech-blog-themegatsby-theme-art-graphgatsby-theme-nestxgatsby-theme-networked-thoughtgatsby-theme-medium-to-own-bloggatsby-theme-modern-portfoliogatsby-theme-projectagatsby-theme-portfolio-caragatsby-theme-operettagatsby-theme-pawan-bloggatsby-theme-personal-blog@antv/gatsby-theme@antv/gatsby-theme-antv@whey/gatsby-theme-whey@weknow/gatsby-theme-drupal-boina@alec.brunelle/gatsby-theme-novela@amorist/gatsby-theme-antd@afuh-test/gatsby-theme-minimal@afuh/gatsby-theme-minimal@agney/gatsby-theme-adventa-nice-bloggo-theme@adamquadmon/gatsby-theme-lucifero@zalastax/nolb-gatsby-rantdsitemberneti@dcl/docs-site@codinators/gatsby-theme-blogblog-theme@davidway/gatsby-theme-novela@eshlox/gatsby-theme-axiimikatre-theme@binance-name/gatsby-theme-novela@dvcorg/gatsby-theme-iterativedaudr-bloglmnts-gatsby-ts-skeletonhemingway-cli@clifmo/gatsby-theme-novelajesielviana-gatsby-theme-docs-corejesielviana-gatsby-theme-minimal-blog-core@cratosw/gatsby-antd@cthsiao/gatsby-theme-novela-mod@boomerang-io/gatsby-theme-boomeranggatsby-all-pack-theme-starter@draftbox-co/gatsby-ghost-novela-theme@draftbox-co/gatsby-wordpress-novela-theme@hyperobjekt/gatsby-theme-hypercore@hpprc/gatsby-theme-blog@getecho/gatsby-theme-echo@getzeroday/gatsby-theme-novela@jampile/gatsby-theme-conference@narative/gatsby-theme-novela@negati-ve/gatsby-theme-novela@mosaic-io/gatsby-theme-novela-local-blog-fork@juvoni/gatsby-theme-networked-thought@jlongster/gatsby-theme-novela@pewriebontal/gatsby-theme-novela@pitayan/gatsby-theme-pitayan@platformos/gatsby-theme-platformos-docskit@opensumi/gatsby-theme@pil0t/gatsby-theme-novela-dolimseeds-docs@pusdn/gatsby-theme-antv@scaleph/scaleph-gatsby-theme
0.0.4

6 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago