I use MacDown[1], a macOS open source visual Markdown editor. You can select from several styles, toggle features such as GitHub-flavored on and off, and then save as PDF. I'm not sure about its scriptability from the command line.[1] http://macdown.uranusjr.com
sah2ed|9 years ago