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

codeBlockPlugin now can set theme #339

Merged
merged 2 commits into from
Jan 30, 2024
Merged

codeBlockPlugin now can set theme #339

merged 2 commits into from
Jan 30, 2024

Conversation

newproplus
Copy link
Contributor

codeBlockPlugin now can set theme

It can be "light" | "dark" | "auto",
or the theme in "@codesandbox/sandpack-themes" package,
or you can also custom one,
just like: sandpack docs

@petyosi
Copy link
Contributor

petyosi commented Jan 30, 2024

That's really cool and necessary, thank you for the PR!

@petyosi petyosi merged commit 796e631 into mdx-editor:main Jan 30, 2024
Copy link

🎉 This PR is included in version 2.4.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@petyosi
Copy link
Contributor

petyosi commented Jan 30, 2024

@newproplus after further thought, I moved the implementation to the codeMirrorPlugin. It does not make sense to keep it on a codeBlock level, because it is specific to the codeMirror editor specifics.

4aa63e3.

Hope this makes sense.

@newproplus newproplus deleted the plugin-code-block-add-theme branch January 30, 2024 09:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants