I have created a build system in my project settings file in order to create PDF file from a markdown file.
When I set “tools”-build-system to automatic, select my markdown file (having a .md extension, example README.md) and press CMD+B (on a mac) or select “tools”-“build” sublime build system create an HTML file based on file I selected and not the PDF as required. If I set build system to name of my project based build then it does create the required PDF file.
I am under the impression that when build is set to automatic that project based build will take precedence which is not happening in my case.
Here is my project based build
{
"folders": [
{
"path": "."
}
],
"build_systems": [
{
"name": "md2pdf",
"cmd": [
"pandoc",
"-o $file_base_name.trial.pdf",
"$file_name"
],
"selector": "text.html.markdown",
"working_dir": "$file_path",
"path": "/Library/TeX/texbin:$PATH"
}
]
}
Pretty sure I am missing some salient point so help much appreciated.
BTW, this is with sublime text 3 build 3103
~C