generator md: Let's make engine a function

This commit is contained in:
Stig-Ørjan Smelror 2024-02-02 07:50:44 +01:00
parent b5be3ed01f
commit a1da086ef4

7
qsgen2
View File

@ -152,7 +152,12 @@ elif [[ ${generator} == "markdown" ]]; then
exit
else
# Usage: ${engine} ${1} - Where 1 is the file you want parsed
engine="/usr/bin/markdown-it \"$1\" > $1"
function engine() {
local command="/usr/bin/markdown-it"
local c-opts=""
command c-opts "$1" > "$1"
}
export file_ext=md
fi
fi