Add in support for markdown files
This commit is contained in:
@@ -12,9 +12,9 @@ module.exports = LatexRunner =
|
|||||||
|
|
||||||
logger.log directory: directory, compiler: compiler, timeout: timeout, mainFile: mainFile, "starting compile"
|
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
|
# We want to run latexmk on the tex file which we will automatically
|
||||||
# generate from the Rtex file.
|
# generate from the Rtex/Rmd/md file.
|
||||||
mainFile = mainFile.replace(/\.Rtex$/, ".tex")
|
mainFile = mainFile.replace(/\.(Rtex|md|Rmd)$/, ".tex")
|
||||||
|
|
||||||
if compiler == "pdflatex"
|
if compiler == "pdflatex"
|
||||||
command = LatexRunner._pdflatexCommand mainFile
|
command = LatexRunner._pdflatexCommand mainFile
|
||||||
|
|||||||
@@ -0,0 +1,17 @@
|
|||||||
|
Section Title
|
||||||
|
-------------
|
||||||
|
|
||||||
|
* List item one
|
||||||
|
* List item two
|
||||||
|
|
||||||
|
: Sample grid table.
|
||||||
|
|
||||||
|
+---------------+---------------+--------------------+
|
||||||
|
| Fruit | Price | Advantages |
|
||||||
|
+===============+===============+====================+
|
||||||
|
| Bananas | $1.34 | - built-in wrapper |
|
||||||
|
| | | - bright color |
|
||||||
|
+---------------+---------------+--------------------+
|
||||||
|
| Oranges | $2.10 | - cures scurvy |
|
||||||
|
| | | - tasty |
|
||||||
|
+---------------+---------------+--------------------+
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
\documentclass{article}
|
||||||
|
\usepackage{longtable}
|
||||||
|
\usepackage{booktabs, multicol, multirow}
|
||||||
|
|
||||||
|
\begin{document}
|
||||||
|
|
||||||
|
\input{chapters/chapter1}
|
||||||
|
|
||||||
|
\end{document}
|
||||||
BIN
test/acceptance/fixtures/examples/markdown-included/output.pdf
Normal file
BIN
test/acceptance/fixtures/examples/markdown-included/output.pdf
Normal file
Binary file not shown.
@@ -0,0 +1,23 @@
|
|||||||
|
% Title
|
||||||
|
% Author
|
||||||
|
% Date
|
||||||
|
|
||||||
|
Chapter title
|
||||||
|
=============
|
||||||
|
|
||||||
|
Section Title
|
||||||
|
-------------
|
||||||
|
|
||||||
|
Hello world. Have a nice table:
|
||||||
|
|
||||||
|
: Sample grid table.
|
||||||
|
|
||||||
|
+---------------+---------------+--------------------+
|
||||||
|
| Fruit | Price | Advantages |
|
||||||
|
+===============+===============+====================+
|
||||||
|
| Bananas | $1.34 | - built-in wrapper |
|
||||||
|
| | | - bright color |
|
||||||
|
+---------------+---------------+--------------------+
|
||||||
|
| Oranges | $2.10 | - cures scurvy |
|
||||||
|
| | | - tasty |
|
||||||
|
+---------------+---------------+--------------------+
|
||||||
BIN
test/acceptance/fixtures/examples/markdown-standalone/output.pdf
Normal file
BIN
test/acceptance/fixtures/examples/markdown-standalone/output.pdf
Normal file
Binary file not shown.
Reference in New Issue
Block a user