markdown-pdf
markdown-pdf copied to clipboard
Respecting @Page?
I am trying to use the @page to do "proper" margining, etc. Just following the following CSS, I see that the style is effectively ignored. Is there any intent to support @page in the future?
Additionally, the CSS defines the page-size (note the 2nd line after @page{ below), which should override the default.
Thanks.
html * {
font: normal normal normal 12pt/normal Constantia, Palatino, "Palatino Linotype", "Palatino LT STD", Georgia, serif;
}
/* ========= */
/* = PAGES = */
/* ========= */
@page {
margin: 12mm 16mm 10mm 16mm;
size: 7in 9.25in landscape;
@footnotes {
border-top: thin solid black;
margin-left: 30%;
margin-top: 0.6em;
padding-top: 0.3em;
}
@bottom-right {
color: #000;
content: counter(page);
font-family: helvetica, arial, sans-serif;
font-size: 12px;
margin-top: -10px;
margin-right: -40px;
}
}
@page toc {
margin-right: 6mm;
@bottom-right {
content: "";
}
}
@page cover {
margin: 0;
@bottom-right {
content: "";
}
}