gatsby-remark-embedded-codesandbox icon indicating copy to clipboard operation
gatsby-remark-embedded-codesandbox copied to clipboard

Make options configurable per embed

Open karlhorky opened this issue 6 years ago • 1 comments
trafficstars

Allow configuration of settings on a per-embed basis (maybe as a query string or something after the path to the examples folder?)

For example, module is a very nice option to have:

Which module to open by default. Multiple paths comma separated are allowed, in that case we show them as tabs.

Workaround: Add multiple Remark plugin configuration blocks with different protocols (eg. embedded-html-sandbox:// for configuration for html files, embedded-react-sandbox:// for React configuration)

karlhorky avatar Aug 07 '19 09:08 karlhorky

Maybe a query string would also be a possibility...

Got the idea from the awesome remark plugin: https://github.com/kevin940726/remark-codesandbox

karlhorky avatar Sep 01 '20 16:09 karlhorky