Added flag to pandoc, to include lua filters

This commit is contained in:
2024-02-03 15:01:26 -05:00
parent 958fc8518a
commit 490ffeb8de

View File

@@ -128,8 +128,8 @@ md_to_html() {
path_for_output="${BASE_PATH}/output/${path_for_output}"
path_for_output="$(dirname $path_for_output)/$(basename $path_for_output .md).html"
# Convert the file, and place the output in the correct location
pandoc -f markdown --wrap=preserve $BASE_PATH/temp/`basename $file` > ${path_for_output}
# Convert the file (using the given filters), and place the output in the correct location
pandoc --lua-filter pandoc_filters/* -f markdown --wrap=preserve $BASE_PATH/temp/`basename $file` > ${path_for_output}
rm $BASE_PATH/temp/*
add_header_and_footer $path_for_output # Uses 'meta_array' array