generator md: Let's make engine a function
This commit is contained in:
parent
b5be3ed01f
commit
a1da086ef4
7
qsgen2
7
qsgen2
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user