generator md: Simplify command

This commit is contained in:
Stig-Ørjan Smelror 2024-02-02 09:50:01 +01:00
parent 439f8997e4
commit 7370dcac20

25
qsgen2
View File

@ -152,18 +152,19 @@ elif [[ ${generator} == "markdown" ]]; then
exit exit
else else
# Usage: ${engine} ${1} - Where 1 is the file you want parsed # Usage: ${engine} ${1} - Where 1 is the file you want parsed
function engine() { engine="/usr/bin/Markdown.pl"
# function engine() {
local command="/usr/bin/Markdown.pl" #
local c-opts= # local command="/usr/bin/Markdown.pl"
# local c-opts=
echo "$1" | $(command) #
# $(command) "$1"
# Assign the output to the global variable named by $1 #
# eval "$1=\${result}" # # Assign the output to the global variable named by $1
# # eval "$1=\${result}"
# echo "${(P)1}" #
} # # echo "${(P)1}"
# }
export file_ext=md export file_ext=md
fi fi
fi fi