generator md: Capture output of markdown

This commit is contained in:
Stig-Ørjan Smelror 2024-02-02 08:43:34 +01:00
parent 476dff8dec
commit 14aba911bb

4
qsgen2
View File

@ -156,7 +156,9 @@ elif [[ ${generator} == "markdown" ]]; then
local command="/usr/bin/markdown"
local c-opts="-d -n -s"
command c-opts "${1}" > "${1}"
local buffer=$(< <($(command) $c-opts "$1"))
echo "${buffer}"
}
export file_ext=md
fi