2.0.3 • Published 6 years ago

gatsby-remark-bracketed-spans v2.0.3

Weekly downloads
70
License
MIT
Repository
github
Last release
6 years ago

gatsby-remark-bracketed-spans

Adds attributes to span tags to MarkdownRemark using remark-bracketed-spans.

Install

npm install --save gatsby-remark-bracketed-spans

How to use

Leverage remark plugin with syntax below:

[text in span]{.class .other-class #anything another=example}

And get the following html:

<p><span class="class other-class" id="anything" data-another="example">text in span</span></p>

Here is an example of how you can add plugin to your gatsby-config.js file:

plugins: [
  {
    resolve: `gatsby-transformer-remark`,
    options: {
      plugins: [
        "gatsby-remark-bracketed-spans",
      ],
    },
  },
]
2.0.3

6 years ago

2.0.2

6 years ago

2.0.1

6 years ago

2.0.0

6 years ago

1.0.0

6 years ago

0.0.1

6 years ago