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

better way to render markdown or html, avoid using dangerouslySetInnerHTML #60

Open
2nthony opened this issue Jun 2, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@2nthony
Copy link
Contributor

2nthony commented Jun 2, 2023

when using renderMentionIdentityUser plugin in nextjs with ssr and styled-components, will always has this error: "className not match"

solutions:

  • don't use styled-components for those components, avoid styled regenerate the className, not sure styled-components tree
  • rewrite previewer render, don't use dangerouslySetInnerHTML
image
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant