kentcdodds/mdx-bundler

Query parameters for `codesandbox`

LuckyPigeon opened this issue · 0 comments

  • mdx-bundler version: 8.0.1
  • node version: 16.13.2
  • npm version: 8.1.2

Relevant code or config

const remarkPlugins: U.PluggableList = [
  [
    remarkEmbedder,
    {
      handleError: handleEmbedderError,
      handleHTML: handleEmbedderHtml,
      transformers: [oembedTransformer],
    },
  ],
];

What you did:

I've defined my remark plugins with remarkEmbedder and oembedTransformer, concrete code shown as above.

What happened:

The codesandbox works functionally as expected, but now I would like to add query parameters for codesandbox, such as, theme, font-size... etc, something like
https://codesandbox.io/xxx?codemirror=1&fontsize=14&hidenavigation=1&theme=light&hidedevtools=1.
How can I achieve this?