Nautilus script to add Markdown to PDF conversion to the right click menu.
- The markdown-convert Python package:
pip install markdown-convert
. - The nautilus file manager.
mkdir -p ~/.local/share/nautilus/scripts/Markdown/
wget https://raw.githubusercontent.com/Julynx/markdown_convert_nautilus/main/Convert%20to%20PDF -O ~/.local/share/nautilus/scripts/Markdown/Convert\ to\ PDF
wget https://raw.githubusercontent.com/Julynx/markdown_convert_nautilus/main/Convert%20to%20PDF%20\(live\) -O ~/.local/share/nautilus/scripts/Markdown/Convert\ to\ PDF\ \(live\)
chmod +x ~/.local/share/nautilus/scripts/Markdown/Convert\ to\ PDF
chmod +x ~/.local/share/nautilus/scripts/Markdown/Convert\ to\ PDF\ \(live\)
Note
If you just installed the markdown-convert
package, you may need to log out and log back in for the command to be registered to your PATH.
- Right click on any Markdown file, then click
Scripts
>Markdown
>Convert to PDF
. - For real-time conversion to PDF, click
Scripts
>Markdown
>Convert to PDF (live)
. - You can also select a CSS file and a Markdown file, and the output PDF will be styled with the selected CSS file.
To remove the entries from the right click menu, run:
rm ~/.local/share/nautilus/scripts/Markdown/Convert\ to\ PDF
rm ~/.local/share/nautilus/scripts/Markdown/Convert\ to\ PDF\ \(live\)
If you also wish to uninstall markdown-convert
, run the following command:
pip uninstall markdown-convert -y