uiwjs / react-md-editor

A simple markdown editor with preview, implemented with React.js and TypeScript.
https://uiwjs.github.io/react-md-editor
MIT License
2.03k stars 149 forks source link

Using `prose` from `tailwind/typography` #604

Open alfianyusufabdullah opened 6 months ago

alfianyusufabdullah commented 6 months ago

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 commented 6 months ago

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

alfianyusufabdullah commented 6 months ago

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 commented 6 months ago

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

alfianyusufabdullah commented 6 months ago

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

jaywcjlove commented 6 months ago

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