Gatsby Book Launch

“The missing guide to the modern web” launches on Thursday, Sep 29th: Modular: The Web’s New Architecture

ContactSign Up for Free
Community Plugin
View plugin on GitHub

gatsby-remark-ruby

This is a very simple wrapup of remark plugin remark-ruby, so that it can be used in Gatsby directly.

Installation

yarn add --dev gatsby-transformer-remark gatsby-remark-ruby

Configuration

In gatsby-config.js file, write the following:

{
  resolve: `gatsby-transformer-remark`,
  options: {
    plugins: [
      {
        resolver: `gatsby-remark-ruby`,
        options: {
          parenthesis: '()',
        },
      },
    ],
  },
}
© 2022 Gatsby, Inc.