react-md-editor icon indicating copy to clipboard operation
react-md-editor copied to clipboard

Lists ::marker not showing

Open joaorr3 opened this issue 2 years ago • 6 comments

Version: @uiw/[email protected]

Nextjs Version: [email protected]

image

joaorr3 avatar Feb 08 '23 00:02 joaorr3

Here everything seems ok. 🤔

image

joaorr3 avatar Feb 08 '23 00:02 joaorr3

On a clean Vite project:

image

joaorr3 avatar Feb 08 '23 00:02 joaorr3

I faced the same issue

tult98 avatar Mar 08 '23 10:03 tult98

image

Looks like a global style conflict.

jaywcjlove avatar Mar 09 '23 01:03 jaywcjlove

If you are using tailwind. It is because of the tailwind has overwrite the list-style CSS rule. (As in the image)

image

You have to revert that by adding this line to tailwind directives

@layer base {
  ul,
  ol {
    list-style: revert;
  }
}

tult98 avatar Mar 15 '23 09:03 tult98

You can use the following className on the parent markdown editor to revert the tailwind defaults for all children of the editor:

className="[&_dl]:list-[revert] [&_ol]:list-[revert] [&_ul]:list-[revert]"

Roman-Octavian avatar May 27 '25 08:05 Roman-Octavian