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

gatsby-remark-abbr

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gatsby-remark-abbr

Use remark-abbr to add abbreviations support to gatsby-remark

  • 2.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
149
decreased by-17.68%
Maintainers
1
Weekly downloads
 
Created
Source

🎩 gatsby-remark-abbr

Add abbreviation syntax support to Gatsby.

With this plugin, you'll be able to write in your Markdown pages:

The HTML specification
is maintained by the W3C.

*[HTML]: Hyper Text Markup Language
*[W3C]:  World Wide Web Consortium

And it'll be converted to:

<p>
  The <abbr title="Hyper Text Markup Language">HTML</abbr> specification
  is maintained by the <abbr title="World Wide Web Consortium">W3C</abbr>.
</p>

Installation

  1. Add the package to your project:
  • With yarn:
    yarn add gatsby-remark-abbr
    
  • With npm:
    npm install gatsby-remark-abbr
    
  1. Add those few lines into your gatsby-config.js:
    module.exports = {
      plugins: [
        {
          resolve: 'gatsby-transformer-remark',
          options: {
+           plugins: [
+             'gatsby-remark-abbr',
+           ],
          },
        },
    };
  1. Delete .cache/ and reboot gatsby
  2. You can now enjoy markdown abbreviation syntax 🎉

Todo

Currently, some code is duplicated between remark-abbr and this plugin. I haven't figured it out yet how to do avoid this. Any help will be greatly apreciated 😅

License

It's a wrapper around remark-abbr plugin, which is under MIT license.

Keywords

FAQs

Package last updated on 22 Nov 2019

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