Added flag to pandoc, to include lua filters

master
Aadhavan Srinivasan 11 months ago
parent 958fc8518a
commit 490ffeb8de

@ -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

Loading…
Cancel
Save