I've compromised a lot with Electron (because I finally had to!) but never for a lightweight text editor app. Never!
Here are some alternatives if anyone is looking
https://macdown.app/ (FOSS)
https://github.com/MarkEdit-app/MarkEdit (FOSS)
And if you must have an electron one then here are some FOSS options https://marktext.me