This is a very simple wrapup of remark plugin remark-ruby, so that it can be used in Gatsby directly.
yarn add --dev gatsby-transformer-remark gatsby-remark-ruby
In gatsby-config.js
file, write the following:
{
resolve: `gatsby-transformer-remark`,
options: {
plugins: [
{
resolve: `gatsby-remark-ruby`,
options: {
parenthesis: '()',
},
},
],
},
}