To be able to convert one or more Markdown (.md) files to pdf, save md-to-pdf in "$HOME"/.local/share/nautilus/scripts/md-to-pdf and make it executable.
.md
"$HOME"/.local/share/nautilus/scripts/md-to-pdf