-
Notifications
You must be signed in to change notification settings - Fork 8
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
Add support for custom css styling for the preview #33
Comments
Would you be open to send in a PR for this tweak? |
I'm not sure I can do that, at least not shortly. |
Maybe there could be a configuration variable like Then you just need to define your own styles as children of the selector given in the config var. In my app, when I display markdown I have a
This way both the regular display and the preview would be identical, inheriting the same styles. |
Heads up, in version 0.3 we'll rename the But yeah. That's a great solution! @1pronik how do you implement dark mode? Using |
hey @adrianthedev, I'm using the |
I using Tailwindcss 4 with dark mode.
When I click the "Preview" button I see almost everything dark.
It will be great to add support for custom classes on preview rendering,
or update the Readme.md with example if it's already possible.
Screenshots:


The text was updated successfully, but these errors were encountered: