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.03k stars 149 forks source link

code highlight and rendering style seems not to work well in mac m1 #636

Closed steveoni closed 1 month ago

steveoni commented 2 months ago

This site(https://www.scatterednote.com/steveoni/notes/rust_cargo%20and%20crates_notes) currently uses both react-md-editor and react-markdown-preview, when viewed in any of the browsers (chrome and safari) on Mac silicon chip, the markdown rendering especially the code-highlight seems not to work perfectly.

image

I load this on my phone and it shows properly.

IMG_0882

I don't have another system to debug the issue properly.

and here is the code rendering the above images

https://github.com/scatteredNote/scatteredNote/blob/a275f5b2271170f7b68faa5256a88c55c9e2e049/pages/%5Buser%5D/notes/%5Bslug%5D.js#L72

also the CSS

https://github.com/scatteredNote/scatteredNote/blob/a275f5b2271170f7b68faa5256a88c55c9e2e049/styles/globals.css#L5

jaywcjlove commented 1 month ago

@steveoni

https://github.com/uiwjs/react-md-editor/blob/bc85ed2a11793ed052e9a68d423841c707d0f282/core/README.md?plain=1#L865-L885