Reddox is a tool to convert subreddit posts to a markdown file (to a pdf file)
git clone [email protected]:Ayman-s-Lab/reddox.git
cd reddox/
pip install -r requirements.txt
python redox.py
grip reddit.md
grip
will render the markdown on localhost ... - just edit away and refresh the browser. Save as PDF ready 🚀.
Here they are several methods for converting a Markdown (.md) formatted file to PDF, from UNIX or Linux machines.
- Using
Pandoc
:
$ reddit.md -s -o posts.pdf
we still recommend to use grip
to display markdown in the browser and then "Save as PDF" option in the Print dialog (for chrome based browsers), because it's lighter weight than installing LaTeX (required by pandoc for pdf generation).
- Using
node.js
based markdown-pdf`:
npm install -g markdown-pdf
markdown-pdf /path/to/markdown