1.0.0 • Published 4 years ago

gatsby-remark-line-breaks v1.0.0

Weekly downloads
148
License
MIT
Repository
github
Last release
4 years ago

gatsby-remark-line-breaks

Add support for hard line breaks to gatsby-transformer-remark, powered by remark-breaks.

How to install

$ npm i gatsby-remark-line-breaks

When do I use this plugin?

By default, you should have two or more spaces before new lines for line breaks in Markdown. For those who are more familiar with GitHub Flavored Markdown might find it inconvenient. This Remark transformer plugin will put hard line breaks without needing spaces while translating Markdown into HTML.

foo
baz
<p>foo<br>
baz</p>

You will find more information about hard line breaks on GitHub Flavored Markdown Spec here.

Examples of usage

plugins: [
  {
    resolve: `gatsby-transformer-remark`,
    options: {
      plugins: [
          `gatsby-remark-line-breaks`
      ]
    }
  },

How to run tests

$ npm test
1.0.0

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago