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

Double quotes("), Ampersand(&), Less Than(<) mark are not outputting correctly in the input area. #494

Open
GitHWS opened this issue Mar 28, 2023 · 3 comments

Comments

@GitHWS
Copy link

GitHWS commented Mar 28, 2023

Hello,
I'm using react-md-editor to create a markdown editor in the React and TypeScript.

This is my dependency:

"dependencies": {
    "@uiw/react-md-editor": "^3.20.5",
    "lodash": "^4.17.21",
    "react": "^18.2.0",
    "react-dom": "^18.2.0",
    "react-hook-form": "^7.43.5",
    "react-router-dom": "^6.9.0",
    "rehype": "^12.0.1",
    "rehype-rewrite": "^3.0.6",
    "styled-components": "^5.3.8",
    "styled-reset": "^4.4.5"
  },
  "devDependencies": {
    "@types/lodash": "^4.14.191",
    "@types/react": "^18.0.27",
    "@types/react-dom": "^18.0.10",
    "@types/styled-components": "^5.1.26",
    "@vitejs/plugin-react": "^3.1.0",
    "typescript": "^4.9.3",
    "vite": "^4.1.0"
  }

when I write ", &, < in the input area, it will look like the image below.

image

But in the preview, the output is normal.

image

And when I select this text, it is displayed correctly.

select text

I think I saw a similar issue. maybe #318

How can I fix the problem with the input area?

@jaywcjlove
Copy link
Member

@GitHWS This may be caused by style conflicts.

@RuiHirano
Copy link

Hi.
I am having the same problem.
Please let me know if you find a solution.

@jaywcjlove
Copy link
Member

I reproduced this error. Should have fixed it. @RuiHirano @GitHWS

Upgrade v3.20.8

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

3 participants