jlkiri / gatsby-remark-shiki

A Gatsby plugin for code highlighting with Shiki for use with gatsby-transformer-remark.
MIT License
6 stars 6 forks source link

Add langs option for plugin #4

Closed amidf closed 3 years ago

amidf commented 3 years ago

It would be convenient if you could add your own languages and grammars for them. Like this:

{
  resolve: `gatsby-remark-shiki`,
  options: {
    langs: [
      { 
        id: `my-language`,
        grammar: {...},
        scopeName: `scope` 
      }
    ]
  }
}
jlkiri commented 3 years ago

Available in 0.2.0