From 74e3e95a982ba77253a15bc1412b0d5af0cbd975 Mon Sep 17 00:00:00 2001 From: Anthony Rose Date: Mon, 3 Mar 2025 16:38:20 +0000 Subject: [PATCH] Make more reliable and include filename in article tags --- roles/home-cli/files/markdown.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/roles/home-cli/files/markdown.sh b/roles/home-cli/files/markdown.sh index 05a67af..a078ca9 100644 --- a/roles/home-cli/files/markdown.sh +++ b/roles/home-cli/files/markdown.sh @@ -11,11 +11,11 @@ cat << __EOF__ __EOF__ -shift # Drop the first argument (document title). -for i in $(seq 1 $#) +while shift do - echo '
' - cmark --to html --nobreaks --unsafe --smart --validate-utf8 $(eval echo \$$i) + test -n "$1" || break # No more files. + echo "
" + cmark --to html --nobreaks --unsafe --smart --validate-utf8 $1 echo '
' done cat << __EOF__