alanshaw / alanshaw/markdown-pdf

Respecting @Page?

オープン
#139 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
JavaScript
スター
2.9k
フォーク
253
PR マージ指標
30日以内にマージされた PR はありません

説明

I am trying to use the [@page](https://developer.mozilla.org/en-US/docs/Web/CSS/@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: "";
}
}
```

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。