

Zettlr! Its designed around writing manuscripts in markdown+latex, then exporting to pure LaTeX, PDF, or any other Pandoc-supported format via a builtin Pandoc GUI. The only thing that doesn’t work particularly well is the table editor, but they’re working on it.
It is electron based, but almost all graphical editors for markdown + inline latex are (obsidian, etc.) because MathJax & KaTeX are the most mature method to render LaTeX inside other document formats.
Obsidian is also good, but it’s not FOSS and their built-in export isn’t great.
Yup, he was eating sodium bromide instead of sodium chloride. Any significant amount of bromide is not good for ya.