Centralized data layer for multiple content sources or frameworks. Dive deep into Valhalla

ContactSign Up for Free
Community Plugin
View plugin on GitHub


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.


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: [

How to run tests

$ npm test
© 2022 Gatsby, Inc.