This is sort of “DEVONThink adjacent”, and I thought some DT users would be interested in this article in Nature on using markdown for scientific writing:
https://www.nature.com/articles/d41586-022-00563-z
I imagine some of you are doing similar already!