@threepenny/md2pdf 2.1.0 → 2.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@threepenny/md2pdf",
3
- "version": "2.1.0",
3
+ "version": "2.1.1",
4
4
  "description": "Markdown to beautifully styled PDF: the renderer and macOS CLI behind md2pdf.me",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -31,7 +31,9 @@
31
31
  }
32
32
 
33
33
  /* Andika (SIL International) and Fredoka, both under the SIL Open Font License; the licences are in
34
- fonts/andika/OFL.txt and fonts/fredoka/OFL.txt. Latin only: other letters come from the fallbacks. */
34
+ fonts/andika/OFL.txt and fonts/fredoka/OFL.txt. Their latin subsets cover English and Western
35
+ European languages (Basic Latin and Latin-1, plus œ and €); other letters, such as Polish, Czech or
36
+ Turkish ones, come from the fallbacks. */
35
37
  @font-face {
36
38
  font-family: "md2pdf Andika";
37
39
  font-weight: 400;
@@ -98,6 +100,8 @@
98
100
  font-size: calc(31.5 / 13.5 * var(--md2pdf-font-size));
99
101
  color: var(--md2pdf-accent);
100
102
  margin: 0 0 calc(0.6em * var(--md2pdf-space));
103
+ /* The bar is a block inside the heading; without this a page can break between them. */
104
+ break-inside: avoid;
101
105
  }
102
106
  .markdown-body h1:not(:first-child) {
103
107
  margin-top: calc(1.4em * var(--md2pdf-space));