You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
Hey! This is a great idea, and I actually meant to include an option like this now that I have the plugin hooked up to GraphQL (some people might want to query for GraphQL data but not bother with rendering any HTML).
If you’re open to making a PR for this that would be awesome! I think the API should look like something this:
it gets run for each block, as in your example. Only difference is the name of the option, and what gets passed as an argument should reuse the CodeFenceData type, which is:
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:
I'm open to implementing this if you think it is feasible in the current architecture.
The text was updated successfully, but these errors were encountered: