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>
|
||||
<style>
|
||||
body{font-family:sans-serif;font-size:12pt;margin:auto;width:160mm;}
|
||||
@media screen{article{margin-bottom:100mm;}}
|
||||
@media print{article{break-after:page;}}
|
||||
@media screen{div.file{margin-bottom:100mm;}}
|
||||
@media print{div.file{break-after:page;}}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
@ -22,9 +22,9 @@ __EOF__
|
|||
while shift
|
||||
do
|
||||
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
|
||||
echo '</article>'
|
||||
echo '</div>'
|
||||
done
|
||||
|
||||
cat << __EOF__
|
||||
|
|
Loading…
Reference in a new issue