md-to-pdf/README.md
2021-09-13 20:52:32 +02:00

18 lines
598 B
Markdown

# 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.
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)
## 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)