/gatsby-remark-ruby

Gatsby plugin of remark-ruby, which uses custom syntax to write <ruby> in markdown

Primary LanguageJavaScriptMIT LicenseMIT

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: [
      {
        resolve: `gatsby-remark-ruby`,
        options: {
          parenthesis: '()',
        },
      },
    ],
  },
}