export to PDF from CLI

Bug #1961057 reported by psl
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
retext (Ubuntu)
New
Undecided
Unassigned

Bug Description

ReText 7.0.1

This is not a bug but just a wish. I miss a batch mode of ReRext. I would like to trigger export of MD file to PDF/HTML/ODT from command line, with some parameter. Start ReText, open MD file, export it and close ReText. Other option could be to show a command that is used internally by ReText to export MD file. My aim is to be able to automate the export process...

Revision history for this message
Dmitry Shachnev (mitya57) wrote :

Hi!

It's unlikely that I will have time to implement it as a separate mode.

But for Markdown, you can get almost the same output if you use a combination of markup2html [1] and wkhtmltopdf [2] tools.

If you don't have any complex JS and CSS in your files, then a combination of markdown_py (from python3-markdown package) and any HTML to PDF converter will also work.

[1]: https://github.com/retext-project/pymarkups/blob/master/markup2html.py
[2]: https://wkhtmltopdf.org/

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.