Added option to pandoc, to preserve line wrapping

This commit is contained in:
2024-01-08 22:52:56 -05:00
parent ad2bc3a3ad
commit 1a477a1abf

View File

@@ -110,7 +110,7 @@ md_to_html() {
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 $BASE_PATH/temp/`basename $file` > ${path_for_output}
pandoc -f markdown --wrap=preserve $BASE_PATH/temp/`basename $file` > ${path_for_output}
rm $BASE_PATH/temp/*
add_header_and_footer $path_for_output