Closed ebasic closed 11 months ago
@iamacup No support for underline, bold and italic for some reason, React 18. It just renders html tags as normal text.
@ebasic
You might want to check that you are not overwriting default body styles with something like
fontFamily: "Overpass_400Regular"
Had this problem with bold and italic not being applied. is still not parsed correctly though...
Solution for underline:
const contentWithUnderline = content?.replaceAll('<u>', '[')?.replaceAll('</u>', ']()')
Still no support for
<u>
tags. Looking forward for some suggestions how to add some custom solutions.Tried to pass
styles
andrules
at the same time (used default styles and rules provided on official documentation) but app crashed and TS raised an error too. Styles alone work perfectly and I was able to change stylings on desired elements, but now I wanted to customize rule forlink
because click on it didn't work although it rendered link correctly (underlined and colored as I specified in styles).Screenshot from IDE:
Screenshot from app crashed: