On Wed, Jun 16, 2021 at 09:19:05AM -0700, Rich Shepard wrote:
> Is there another way to convert from .md to .pdf and have a clean text
> file with included code?

Jump into your time machine and find a copy of enscript.

  https://www.markkurossi.com/genscript/

It's designed for pretty-printing of source code and won't render any of
the Markdown, but will at least make a very-long-lined file readable.
Something like:

  enscript --word-wrap your_file.md --output your_file.ps  &&  ps2pdf 
your_file.ps

(Don't leave out the `--output` option or enscript will send the
PostScript straight to your default printer.)


-- 
Paul

Reply via email to