Add in support for markdown files

This commit is contained in:
James Allen
2014-04-04 09:56:20 -04:00
parent 57903fa001
commit c0464aca9a
6 changed files with 52 additions and 3 deletions

View File

@@ -12,9 +12,9 @@ module.exports = LatexRunner =
logger.log directory: directory, compiler: compiler, timeout: timeout, mainFile: mainFile, "starting compile"
# We want to run latexmk on the tex file which we it will automatically
# generate from the Rtex file.
mainFile = mainFile.replace(/\.Rtex$/, ".tex")
# We want to run latexmk on the tex file which we will automatically
# generate from the Rtex/Rmd/md file.
mainFile = mainFile.replace(/\.(Rtex|md|Rmd)$/, ".tex")
if compiler == "pdflatex"
command = LatexRunner._pdflatexCommand mainFile