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.15k stars 155 forks source link

Italic text does not work in preview mode #573

Closed qsdamar closed 1 year ago

qsdamar commented 1 year ago

Italic text does not work in preview mode, next.js project.

I've looked into the issues and did not find anything similar to this. I understand that font-style: inherit is used, but I'm wondering what the initial value of font-style should be for this to work.

Does anyone have a similar problem?

These are the libraries and versions I am using:

"next": "^12.0.7",
"@uiw/react-md-editor": "^3.6.0",
"next-remove-imports": "^1.0.12",

Attaching an image below: Screenshot 2023-09-21 at 15 01 59

Thank you.

jaywcjlove commented 1 year ago
image

@qsdamar You may have reset <em> style.

em {
    font-style: italic;
}
qsdamar commented 1 year ago

This helped me to achieve what I wanted.

Thank you, closing the issue.