I use Ghostwriter, it's free. I write in a directory that is continuously synced to Dropbox. And I write in pandoc flavored markdown, so a single script can spit out compiled PDF or epub.
I've wanted to try it as it looks pretty slick but it's apparently "a [...] Markdown editor for Windows and Linux". Not much of an help if you are using macOS.