🎩 gatsby-remark-abbr
Add abbreviation syntax support to Gatsby.
With this plugin, you'll be able to write in your Markdown pages:
The HTML specificationis maintained by the W3C. *[HTML]: Hyper Text Markup Language*[W3C]: World Wide Web Consortium
And it'll be converted to:
The HTML specification is maintained by the W3C.
Installation
- Add the package to your project:
- With
yarn
:yarn add gatsby-remark-abbr - With
npm
:npm install gatsby-remark-abbr
- Add those few lines into your
gatsby-config.js
:
module.exports = { plugins: [ { resolve: 'gatsby-transformer-remark', options: {+ plugins: [+ 'gatsby-remark-abbr',+ ], }, }, };
- Delete
.cache/
and rebootgatsby
- 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.