aboutsummaryrefslogtreecommitdiff
path: root/pdfs/toPDF.sh
diff options
context:
space:
mode:
Diffstat (limited to 'pdfs/toPDF.sh')
-rwxr-xr-xpdfs/toPDF.sh3
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