> overkill
To write my hard sci-fi novel, I wrote a cross-platform Markdown editor so that I could use interpolated variables along with R code:
https://keenwrite.com/screenshots.html
ConTeXt produces the PDF files. I also developed a few calculators to help confirm physics and other plot-related aspects: