0.0.2 • Published 4 years ago

gatsby-remark-default-code-lang v0.0.2

Weekly downloads
3
License
MIT
Repository
github
Last release
4 years ago

gatsby-remark-default-code-lang

This plugin sets default code block or inline code language.

Use together with gatsby-remark-prismjs:

// gatsby-remark-default-code-lang should be before `gatsby-remark-prismjs` and `gatsby-remark-code-titles` (if you use it)
{
  resolve: `gatsby-remark-default-code-lang`,
  options: {
    // this is important to match the `inlineCodeMarker` with value used in `gatsby-remark-prismjs` configuration
    inlineCodeMarker: "¬",
    inlineCodeDefaultLanguage: "csharp",
    blockCodeDefaultLanguage: "csharp",
  },
},
// optional
`gatsby-remark-code-titles`,
{
  resolve: `gatsby-remark-prismjs`,
  options: {
    inlineCodeMarker: "¬",
  },
},
0.0.2

4 years ago

0.0.1

4 years ago