gatsby-remark-embedded-codesandbox
gatsby-remark-embedded-codesandbox copied to clipboard
Make options configurable per embed
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)
Maybe a query string would also be a possibility...
Got the idea from the awesome remark plugin: https://github.com/kevin940726/remark-codesandbox