md-to-pdf/README.md

18 lines
598 B
Markdown
Raw Normal View History

2021-09-03 13:10:03 +02:00
# md-to-pdf
To be able to convert one or more Markdown (`.md`) files to pdf, save [md-to-pdf](md-to-pdf) in `"$HOME"/.local/share/nautilus/scripts/md-to-pdf` and make it executable.
2021-09-03 13:16:02 +02:00
Screenshot of the context menu in Nautilus (GNOME files):
![](./Nautilus-context-menu.png)
As an example, one can have a look at this README file converted to pdf: [README.md.pdf](./README.md.pdf)
2021-09-13 20:52:32 +02:00
## The conversion process
At first the Markdown is converted to HTML with `cmark-gfm`. Then `chromium` is used to print the HTML to pdf.
## Alternatives conversion methods
see [alternatives.sh](alternatives.sh)