From 14aba911bbeb4bba70b8fb51ed05031763a117c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stig-=C3=98rjan=20Smelror?= Date: Fri, 2 Feb 2024 08:43:34 +0100 Subject: [PATCH] generator md: Capture output of markdown --- qsgen2 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/qsgen2 b/qsgen2 index daf0094..0a3298d 100755 --- a/qsgen2 +++ b/qsgen2 @@ -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