Put each file inside an HTML5 article tag

This commit is contained in:
Anthony Rose 2025-03-03 16:04:19 +00:00
parent 85ab0ad8a1
commit 7880e87b64

View file

@ -12,7 +12,12 @@ cat << __EOF__
<body> <body>
__EOF__ __EOF__
shift # Drop the first argument (document title). shift # Drop the first argument (document title).
cmark --to html --nobreaks --unsafe --smart --validate-utf8 $* for i in $(seq 1 $#)
do
echo '<article>'
cmark --to html --nobreaks --unsafe --smart --validate-utf8 $(eval echo \$$i)
echo '</article>'
done
cat << __EOF__ cat << __EOF__
</body> </body>
</html> </html>