Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save promicrobial/0a57784645b762fb25061b1f7ee61e36 to your computer and use it in GitHub Desktop.
Save promicrobial/0a57784645b762fb25061b1f7ee61e36 to your computer and use it in GitHub Desktop.
Convert Markdown to PDF within Sublime Text using Pandoc
{
"cmd": ["pandoc --pdf-engine=xelatex --filter=pandoc-citeproc -o '$file_base_name.pdf' '$file_name' && xdg-open '$file_base_name.pdf'"],
"selector": "text.html.markdown",
"shell": true
}
@promicrobial
Copy link
Author

Forked from keuv-grvl and modified to reflect pandoc v2.9.2.1 syntax and includes an additional command to automatically open the rendered pdf after building is complete.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment