Skip to content

Feature request: Option to not use gatsby-remark-vscode for specifc code blocks #79

Open
@mendes5

Description

@mendes5

Currently, I need a way to tell the plugin to not render the VSCode code block in some specific blocks. Is there any way to do this?
If not we could implement something using code fence options plus a function on the gatsby-config object, something like this:

```js{useVSCode: false}
console.log('A')
plugins: [{
        resolve: `gatsby-remark-vscode`,
        options: {
           shouldRenderVSCodeForBlock: ({ useVSCode = true }) => useVSCode;
        }
      }]

I'm open to implementing this if you think it is feasible in the current architecture.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions