From 7880e87b64f8ee3850f077e3f54cdf8c8fded789 Mon Sep 17 00:00:00 2001 From: Anthony Rose Date: Mon, 3 Mar 2025 16:04:19 +0000 Subject: [PATCH] Put each file inside an HTML5 article tag --- roles/home-cli/files/markdown.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/roles/home-cli/files/markdown.sh b/roles/home-cli/files/markdown.sh index d71d954..334ce05 100644 --- a/roles/home-cli/files/markdown.sh +++ b/roles/home-cli/files/markdown.sh @@ -12,7 +12,12 @@ cat << __EOF__ __EOF__ shift # Drop the first argument (document title). -cmark --to html --nobreaks --unsafe --smart --validate-utf8 $* +for i in $(seq 1 $#) +do + echo '
' + cmark --to html --nobreaks --unsafe --smart --validate-utf8 $(eval echo \$$i) + echo '
' +done cat << __EOF__