From a1da086ef407a6312e60feb55f254fe32e9cabe0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stig-=C3=98rjan=20Smelror?= Date: Fri, 2 Feb 2024 07:50:44 +0100 Subject: [PATCH] generator md: Let's make engine a function --- qsgen2 | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/qsgen2 b/qsgen2 index f2a8bf3..3151fec 100755 --- a/qsgen2 +++ b/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