react-diff-viewer
react-diff-viewer copied to clipboard
Can inline styles be supported?
trafficstars
Firstly, react-diff-viewer inserts the <style> tag to render CSS styles, but in some cases (such as Micro-Frontends, I'm using qiankun framework), the code styles will be lost:

So I think above problem can be solved by inline CSS styles, or put the styles to .css file. This is a valid guess, for example, react-codemirror2 with similar functions is put CSS styles to .css files, and its style is normal.

Totally, I hope react-diff-viewer can support multiple way to render CSS styles, instead of only <style> tag.
I have encountered the same problem. I have a little solution in my issue
https://github.com/praneshr/react-diff-viewer/issues/181