Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Width and Height Parameters not compiling #127

Open
wiktor-jurek opened this issue Sep 6, 2023 · 0 comments
Open

Width and Height Parameters not compiling #127

wiktor-jurek opened this issue Sep 6, 2023 · 0 comments

Comments

@wiktor-jurek
Copy link

  • @remark-embedder/transformer-oembed version: 3.0.0
  • node version: 18.15.0
  • npm version: 9.5.0

Relevant code or config

  const { code, frontmatter } = await bundleMDX({
    source: mdxSource,
    mdxOptions(options) {
      options.remarkPlugins = [
        ...(options.remarkPlugins ?? []),
        remarkGfm,
        [
          remarkEmbedder,
          {
            transformers: [
              oembedTransformer,
              {
                params: {
                  theme: "dark",
                  dnt: true,
                  omit_script: true,
                  width: 1000,
                  height: 1000,
                  arguments: { width: 1000, height: 1000 },
                },
              } as Config,
            ],
            handleHTML,
          },
        ],
      ];
      options.rehypePlugins = [...(options.rehypePlugins ?? []), rehypePrism];

      return options;
    },
  });

What you did:

I'm using the plugin with the remark embedded and mdxBundler, and trying to pass a width and height property to my iframe.

What happened:

The Iframe compiles with the default width and height despite me passing it in as a parameter.
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant