kentcdodds / mdx-bundler

🦤 Give me MDX/TSX strings and I'll give you back a component you can render. Supports imports!
MIT License
1.78k stars 75 forks source link

Query parameters for `codesandbox` #161

Open LuckyPigeon opened 2 years ago

LuckyPigeon commented 2 years ago

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?