alanshaw / alanshaw/markdown-pdf

Respecting @Page?

Aberta
#139 0 comentários 0 reações 0 responsáveis Ver no GitHub
Linguagem predominante
JavaScript
Estrelas
2.9k
Forks
253
Métricas de merge de PRs
Nenhum PR com merge em 30d

Descrição

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: "";
}
}
```

Guia de contribuição

Nenhum guia de contribuição indexado para este repositório

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.