diff options
Diffstat (limited to 'pdfs')
-rwxr-xr-x | pdfs/toPDF.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pdfs/toPDF.sh b/pdfs/toPDF.sh index 0134803..2c520a4 100755 --- a/pdfs/toPDF.sh +++ b/pdfs/toPDF.sh @@ -35,7 +35,8 @@ case "$extension" in plantUmlCode="" plantUmlScriptPath="${pandocLuaScriptsFolder}/${pandocPlantUmlLuaScript}" [ -f "$plantUmlScriptPath" ] && [ -n "$PLANTUML" ] && - plantUmlCode="--lua-filter $plantUmlScriptPath" + grep '```{\.plantuml' "$sourceFile" >/dev/null + plantUmlCode="--lua-filter $plantUmlScriptPath" pandoc --pdf-engine=xelatex "$sourceFile" $plantUmlCode -o "$targetFile" > ~/logs/toPDF.log ;; esac |