mirror of
https://codeberg.org/privacy1st/md-to-pdf.git
synced 2024-11-22 14:09:32 +01:00
18 lines
598 B
Markdown
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)
|