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

Using prose from tailwind/typography #604

Open
alfianyusufabdullah opened this issue Dec 13, 2023 · 5 comments
Open

Using prose from tailwind/typography #604

alfianyusufabdullah opened this issue Dec 13, 2023 · 5 comments

Comments

@alfianyusufabdullah
Copy link

First of all, thank you for this amazing markdown editor. Currently, I'm using the MDEditor library on one of my websites both as an editor and its preview. Everything is running smoothly. However, I have a question. How can we change the base styles of markdown to the prose class provided by @tailwind/typography?

Thank you very much.

@jaywcjlove
Copy link
Member

@alfianyusufabdullah If you provide an example that works, I can look into it.

@alfianyusufabdullah
Copy link
Author

i no have example, currently @jaywcjlove. I'm just curious how to implement it. Maybe there are function to disable base style so we can use our styles.

@jaywcjlove
Copy link
Member

@alfianyusufabdullah You can use the babel-plugin-transform-remove-imports Babel plug-in to remove automatically imported styles

@alfianyusufabdullah
Copy link
Author

This is compatible with NextJS app router @jaywcjlove ? As far i know, nextjs currently using SWC instead of babel

@jaywcjlove
Copy link
Member

@alfianyusufabdullah I just gave you the idea to see if SWC has similar features.

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

2 participants