Article tag has formatting implications
This commit is contained in:
parent
1814e655ea
commit
18afea7766
1 changed files with 4 additions and 4 deletions
|
@ -12,8 +12,8 @@ cat << __EOF__
|
||||||
<title>$1</title>
|
<title>$1</title>
|
||||||
<style>
|
<style>
|
||||||
body{font-family:sans-serif;font-size:12pt;margin:auto;width:160mm;}
|
body{font-family:sans-serif;font-size:12pt;margin:auto;width:160mm;}
|
||||||
@media screen{article{margin-bottom:100mm;}}
|
@media screen{div.file{margin-bottom:100mm;}}
|
||||||
@media print{article{break-after:page;}}
|
@media print{div.file{break-after:page;}}
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
@ -22,9 +22,9 @@ __EOF__
|
||||||
while shift
|
while shift
|
||||||
do
|
do
|
||||||
test -n "$1" || break # No more files.
|
test -n "$1" || break # No more files.
|
||||||
echo "<article data-filename=\"$(basename "$1")\">"
|
echo "<div class="file" data-filename=\"$(basename "$1")\">"
|
||||||
cmark --to html --nobreaks --unsafe --smart --validate-utf8 $1
|
cmark --to html --nobreaks --unsafe --smart --validate-utf8 $1
|
||||||
echo '</article>'
|
echo '</div>'
|
||||||
done
|
done
|
||||||
|
|
||||||
cat << __EOF__
|
cat << __EOF__
|
||||||
|
|
Loading…
Reference in a new issue