@threepenny/md2pdf 0.0.0-stage → 2.1.0
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/LICENSE +21 -0
- package/README.md +221 -2
- package/bin/md2pdf.js +253 -0
- package/lib/callouts.js +73 -0
- package/lib/css.js +27 -0
- package/lib/render.js +110 -0
- package/lib/styles.js +12 -0
- package/lib/wikilinks.js +75 -0
- package/package.json +42 -4
- package/styles/academic.css +396 -0
- package/styles/classic.css +379 -0
- package/styles/fonts/andika/OFL.txt +93 -0
- package/styles/fonts/andika/andika-latin-400-italic.woff2 +0 -0
- package/styles/fonts/andika/andika-latin-400-normal.woff2 +0 -0
- package/styles/fonts/andika/andika-latin-700-italic.woff2 +0 -0
- package/styles/fonts/andika/andika-latin-700-normal.woff2 +0 -0
- package/styles/fonts/fredoka/OFL.txt +93 -0
- package/styles/fonts/fredoka/fredoka-latin-600-normal.woff2 +0 -0
- package/styles/github.css +322 -0
- package/styles/modern.css +365 -0
- package/styles/print/academic.css +22 -0
- package/styles/print/classic.css +27 -0
- package/styles/print/github.css +26 -0
- package/styles/print/modern.css +30 -0
- package/styles/print/report.css +60 -0
- package/styles/print/resume.css +19 -0
- package/styles/print/worksheet.css +30 -0
- package/styles/report.css +352 -0
- package/styles/resume.css +353 -0
- package/styles/worksheet.css +477 -0
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/* Classic: the print-only rules (page margins, running headers and page numbers). Load after
|
|
2
|
+
../classic.css when printing; a page that only shows the document on screen leaves this out. */
|
|
3
|
+
|
|
4
|
+
@page {
|
|
5
|
+
margin: 1in 1.1in 0.9in;
|
|
6
|
+
/* An empty top box stops browsers from adding their own date/title header. */
|
|
7
|
+
@top-center {
|
|
8
|
+
content: "";
|
|
9
|
+
}
|
|
10
|
+
@bottom-center {
|
|
11
|
+
content: counter(page);
|
|
12
|
+
font-family: "Iowan Old Style", Charter, Palatino, Georgia, serif;
|
|
13
|
+
font-size: 9pt;
|
|
14
|
+
color: #6b645b;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
@page :first {
|
|
18
|
+
@bottom-center {
|
|
19
|
+
content: "";
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
html,
|
|
24
|
+
body {
|
|
25
|
+
margin: 0;
|
|
26
|
+
background: #fff;
|
|
27
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/* GitHub: the print-only rules (page margins). Load after ../github.css when printing; a page that
|
|
2
|
+
only shows the document on screen leaves this out. */
|
|
3
|
+
|
|
4
|
+
@page {
|
|
5
|
+
margin: 0.75in 0.7in;
|
|
6
|
+
/* Empty margin boxes stop browsers from adding their own date/URL headers and footers
|
|
7
|
+
when printing from the website. */
|
|
8
|
+
@top-center {
|
|
9
|
+
content: "";
|
|
10
|
+
}
|
|
11
|
+
@bottom-center {
|
|
12
|
+
content: "";
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
html,
|
|
17
|
+
body {
|
|
18
|
+
margin: 0;
|
|
19
|
+
background: #fff;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.markdown-body {
|
|
23
|
+
max-width: none;
|
|
24
|
+
margin: 0;
|
|
25
|
+
padding: 0;
|
|
26
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/* Modern: the print-only rules (page margins, running headers and page numbers). Load after
|
|
2
|
+
../modern.css when printing; a page that only shows the document on screen leaves this out. */
|
|
3
|
+
|
|
4
|
+
@page {
|
|
5
|
+
margin: 0.9in 1in;
|
|
6
|
+
/* Empty boxes stop browsers from adding their own date/title header and URL/page footer. */
|
|
7
|
+
@top-center {
|
|
8
|
+
content: "";
|
|
9
|
+
}
|
|
10
|
+
@bottom-center {
|
|
11
|
+
content: "";
|
|
12
|
+
}
|
|
13
|
+
@bottom-right {
|
|
14
|
+
content: counter(page);
|
|
15
|
+
font-family: "Avenir Next", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
|
|
16
|
+
font-size: 8.5pt;
|
|
17
|
+
color: #5c6577;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
@page :first {
|
|
21
|
+
@bottom-right {
|
|
22
|
+
content: "";
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
html,
|
|
27
|
+
body {
|
|
28
|
+
margin: 0;
|
|
29
|
+
background: #fff;
|
|
30
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/* Report: the print-only rules (page margins, running headers and page numbers). Load after
|
|
2
|
+
../report.css when printing; a page that only shows the document on screen leaves this out. */
|
|
3
|
+
|
|
4
|
+
:root {
|
|
5
|
+
/* The document's first heading, for the running header; set by the renderer or the page showing it. */
|
|
6
|
+
--document-title: "";
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
@page {
|
|
10
|
+
margin: 1in 1in 0.9in;
|
|
11
|
+
@top-left {
|
|
12
|
+
content: var(--document-title);
|
|
13
|
+
vertical-align: bottom;
|
|
14
|
+
margin-bottom: 18pt;
|
|
15
|
+
padding-bottom: 6pt;
|
|
16
|
+
border-bottom: 0.75pt solid #b9c3cf;
|
|
17
|
+
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
|
|
18
|
+
font-size: 8pt;
|
|
19
|
+
color: #5f6b7a;
|
|
20
|
+
}
|
|
21
|
+
/* Empty boxes carry the header rule across the page and stop browsers adding their own header. */
|
|
22
|
+
@top-center {
|
|
23
|
+
content: "";
|
|
24
|
+
margin-bottom: 18pt;
|
|
25
|
+
border-bottom: 0.75pt solid #b9c3cf;
|
|
26
|
+
}
|
|
27
|
+
@top-right {
|
|
28
|
+
content: "";
|
|
29
|
+
margin-bottom: 18pt;
|
|
30
|
+
border-bottom: 0.75pt solid #b9c3cf;
|
|
31
|
+
}
|
|
32
|
+
@bottom-center {
|
|
33
|
+
content: "";
|
|
34
|
+
}
|
|
35
|
+
@bottom-right {
|
|
36
|
+
content: "Page " counter(page) " of " counter(pages);
|
|
37
|
+
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
|
|
38
|
+
font-size: 8pt;
|
|
39
|
+
color: #5f6b7a;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
/* The title block replaces the header on the first page. */
|
|
43
|
+
@page :first {
|
|
44
|
+
@top-left {
|
|
45
|
+
content: "";
|
|
46
|
+
border: 0;
|
|
47
|
+
}
|
|
48
|
+
@top-center {
|
|
49
|
+
border: 0;
|
|
50
|
+
}
|
|
51
|
+
@top-right {
|
|
52
|
+
border: 0;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
html,
|
|
57
|
+
body {
|
|
58
|
+
margin: 0;
|
|
59
|
+
background: #fff;
|
|
60
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/* Résumé: the print-only rules (page margins, running headers and page numbers). Load after
|
|
2
|
+
../resume.css when printing; a page that only shows the document on screen leaves this out. */
|
|
3
|
+
|
|
4
|
+
@page {
|
|
5
|
+
margin: 0.6in 0.7in;
|
|
6
|
+
/* Empty boxes stop browsers from adding their own date/title header and URL footer. */
|
|
7
|
+
@top-center {
|
|
8
|
+
content: "";
|
|
9
|
+
}
|
|
10
|
+
@bottom-center {
|
|
11
|
+
content: "";
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
html,
|
|
16
|
+
body {
|
|
17
|
+
margin: 0;
|
|
18
|
+
background: #fff;
|
|
19
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/* Worksheet: the print-only rules (page margins, running headers and page numbers). Load after
|
|
2
|
+
../worksheet.css when printing; a page that only shows the document on screen leaves this out. */
|
|
3
|
+
|
|
4
|
+
@page {
|
|
5
|
+
margin: 0.8in 0.9in;
|
|
6
|
+
/* Empty boxes stop browsers from adding their own date/title header and URL/page footer. */
|
|
7
|
+
@top-center {
|
|
8
|
+
content: "";
|
|
9
|
+
}
|
|
10
|
+
/* Margin boxes don't see the document's variables, so these repeat worksheet.css's heading font
|
|
11
|
+
and accent. */
|
|
12
|
+
@bottom-center {
|
|
13
|
+
content: counter(page);
|
|
14
|
+
font-family: "md2pdf Fredoka", "Arial Rounded MT Bold", sans-serif;
|
|
15
|
+
font-weight: 600;
|
|
16
|
+
font-size: 11pt;
|
|
17
|
+
color: #1f6fd1;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
@page :first {
|
|
21
|
+
@bottom-center {
|
|
22
|
+
content: "";
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
html,
|
|
27
|
+
body {
|
|
28
|
+
margin: 0;
|
|
29
|
+
background: #fff;
|
|
30
|
+
}
|
|
@@ -0,0 +1,352 @@
|
|
|
1
|
+
/* Report: a title block from the first heading, a running header with the title, "Page N of M" footers
|
|
2
|
+
and sober ruled tables. Serif text with sans-serif headings. */
|
|
3
|
+
|
|
4
|
+
/* Variables a page can override, on .markdown-body itself: for all its documents, or for one with
|
|
5
|
+
<article class="markdown-body" style="--md2pdf-font-size: 12pt">. A value set on :root or another
|
|
6
|
+
ancestor doesn't reach the document. :where() gives these defaults no specificity, so the page's
|
|
7
|
+
rule wins wherever it comes. Every style uses the same names. */
|
|
8
|
+
:where(.markdown-body) {
|
|
9
|
+
/* Size and spacing. --md2pdf-font-size is the body text size, an absolute length such as 11pt or 15px; headings and smaller text scale with
|
|
10
|
+
it. --md2pdf-leading scales each line height's excess over 1, and --md2pdf-space the vertical
|
|
11
|
+
gaps between blocks; both are 1 as designed. */
|
|
12
|
+
--md2pdf-font-size: 10.5pt;
|
|
13
|
+
--md2pdf-leading: 1;
|
|
14
|
+
--md2pdf-space: 1;
|
|
15
|
+
/* Colors: --md2pdf-background the document's background; --md2pdf-text body text; --md2pdf-muted
|
|
16
|
+
secondary text; --md2pdf-accent headings, links, quotes and table headings; --md2pdf-rule rules
|
|
17
|
+
and table lines; --md2pdf-surface inline code, quote and table-heading backgrounds. */
|
|
18
|
+
--md2pdf-background: #fff;
|
|
19
|
+
--md2pdf-text: #1c2129;
|
|
20
|
+
--md2pdf-muted: #5f6b7a;
|
|
21
|
+
--md2pdf-accent: #1f3a5f;
|
|
22
|
+
--md2pdf-rule: #b9c3cf;
|
|
23
|
+
--md2pdf-surface: #edf1f5;
|
|
24
|
+
/* Fonts: --md2pdf-font body text, --md2pdf-heading-font headings, callout titles and tables,
|
|
25
|
+
--md2pdf-code-font code. */
|
|
26
|
+
--md2pdf-font: Charter, "Bitstream Charter", "Sitka Text", Cambria, Georgia, serif;
|
|
27
|
+
--md2pdf-heading-font: "Helvetica Neue", Helvetica, Arial, sans-serif;
|
|
28
|
+
--md2pdf-code-font: "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.markdown-body {
|
|
32
|
+
font-family: var(--md2pdf-font);
|
|
33
|
+
background: var(--md2pdf-background);
|
|
34
|
+
font-size: var(--md2pdf-font-size);
|
|
35
|
+
line-height: calc(1 + 0.5 * var(--md2pdf-leading));
|
|
36
|
+
color: var(--md2pdf-text);
|
|
37
|
+
-webkit-print-color-adjust: exact;
|
|
38
|
+
print-color-adjust: exact;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.markdown-body p {
|
|
42
|
+
margin: 0 0 calc(0.8em * var(--md2pdf-space));
|
|
43
|
+
orphans: 3;
|
|
44
|
+
widows: 3;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/* Headings */
|
|
48
|
+
|
|
49
|
+
.markdown-body h1,
|
|
50
|
+
.markdown-body h2,
|
|
51
|
+
.markdown-body h3,
|
|
52
|
+
.markdown-body h4,
|
|
53
|
+
.markdown-body h5,
|
|
54
|
+
.markdown-body h6 {
|
|
55
|
+
font-family: var(--md2pdf-heading-font);
|
|
56
|
+
font-weight: bold;
|
|
57
|
+
line-height: calc(1 + 0.25 * var(--md2pdf-leading));
|
|
58
|
+
color: var(--md2pdf-accent);
|
|
59
|
+
break-after: avoid;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/* The first heading is the report's title block. */
|
|
63
|
+
.markdown-body h1:first-child {
|
|
64
|
+
font-size: calc(24 / 10.5 * var(--md2pdf-font-size));
|
|
65
|
+
letter-spacing: -0.01em;
|
|
66
|
+
margin: 0 0 calc(1.6em * var(--md2pdf-space));
|
|
67
|
+
padding: 0.6em 0 0.5em;
|
|
68
|
+
border-top: 6pt solid var(--md2pdf-accent);
|
|
69
|
+
border-bottom: 0.75pt solid var(--md2pdf-rule);
|
|
70
|
+
}
|
|
71
|
+
.markdown-body h1 {
|
|
72
|
+
font-size: calc(18 / 10.5 * var(--md2pdf-font-size));
|
|
73
|
+
margin: calc(1.8em * var(--md2pdf-space)) 0 calc(0.7em * var(--md2pdf-space));
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.markdown-body h2 {
|
|
77
|
+
font-size: calc(13.5 / 10.5 * var(--md2pdf-font-size));
|
|
78
|
+
margin: calc(1.8em * var(--md2pdf-space)) 0 calc(0.6em * var(--md2pdf-space));
|
|
79
|
+
padding-bottom: 0.25em;
|
|
80
|
+
border-bottom: 0.75pt solid var(--md2pdf-rule);
|
|
81
|
+
}
|
|
82
|
+
.markdown-body h3 {
|
|
83
|
+
font-size: calc(11.5 / 10.5 * var(--md2pdf-font-size));
|
|
84
|
+
margin: calc(1.4em * var(--md2pdf-space)) 0 calc(0.4em * var(--md2pdf-space));
|
|
85
|
+
}
|
|
86
|
+
.markdown-body h4,
|
|
87
|
+
.markdown-body h5,
|
|
88
|
+
.markdown-body h6 {
|
|
89
|
+
font-size: var(--md2pdf-font-size);
|
|
90
|
+
color: var(--md2pdf-text);
|
|
91
|
+
margin: calc(1.2em * var(--md2pdf-space)) 0 calc(0.3em * var(--md2pdf-space));
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
/* Links */
|
|
95
|
+
|
|
96
|
+
.markdown-body a {
|
|
97
|
+
color: var(--md2pdf-accent);
|
|
98
|
+
text-decoration: underline;
|
|
99
|
+
text-decoration-thickness: 0.5pt;
|
|
100
|
+
text-underline-offset: 2pt;
|
|
101
|
+
}
|
|
102
|
+
.markdown-body a.header-anchor {
|
|
103
|
+
display: none;
|
|
104
|
+
}
|
|
105
|
+
.markdown-body .footnote-ref a {
|
|
106
|
+
text-decoration: none;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
/* Lists */
|
|
110
|
+
|
|
111
|
+
.markdown-body ul,
|
|
112
|
+
.markdown-body ol {
|
|
113
|
+
margin: 0 0 calc(0.8em * var(--md2pdf-space));
|
|
114
|
+
padding-left: 1.6em;
|
|
115
|
+
}
|
|
116
|
+
.markdown-body li {
|
|
117
|
+
margin: calc(0.2em * var(--md2pdf-space)) 0;
|
|
118
|
+
}
|
|
119
|
+
.markdown-body li > ul,
|
|
120
|
+
.markdown-body li > ol {
|
|
121
|
+
margin: calc(0.2em * var(--md2pdf-space)) 0 0;
|
|
122
|
+
}
|
|
123
|
+
.markdown-body .task-list-item {
|
|
124
|
+
list-style-type: none;
|
|
125
|
+
}
|
|
126
|
+
.markdown-body .task-list-item input {
|
|
127
|
+
margin: 0 0.4em 0.2em -1.4em;
|
|
128
|
+
vertical-align: middle;
|
|
129
|
+
accent-color: var(--md2pdf-accent);
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
/* Quotes: a shaded callout. */
|
|
133
|
+
|
|
134
|
+
.markdown-body blockquote {
|
|
135
|
+
margin: calc(1em * var(--md2pdf-space)) 0;
|
|
136
|
+
padding: 0.7em 1em;
|
|
137
|
+
background: var(--md2pdf-surface);
|
|
138
|
+
border-left: 3pt solid var(--md2pdf-accent);
|
|
139
|
+
break-inside: avoid;
|
|
140
|
+
}
|
|
141
|
+
.markdown-body blockquote p:last-child {
|
|
142
|
+
margin-bottom: 0;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
/* Callouts (GitHub alerts and Obsidian callouts): shaded like quotes, in the callout's color. */
|
|
146
|
+
|
|
147
|
+
.markdown-body .markdown-alert {
|
|
148
|
+
--md2pdf-callout: #2b5c9e;
|
|
149
|
+
margin: calc(1em * var(--md2pdf-space)) 0;
|
|
150
|
+
padding: 0.7em 1em;
|
|
151
|
+
border-left: 3pt solid var(--md2pdf-callout);
|
|
152
|
+
background: color-mix(in srgb, var(--md2pdf-callout) 8%, var(--md2pdf-background));
|
|
153
|
+
break-inside: avoid;
|
|
154
|
+
}
|
|
155
|
+
.markdown-body .markdown-alert-tip {
|
|
156
|
+
--md2pdf-callout: #2e6b3f;
|
|
157
|
+
}
|
|
158
|
+
.markdown-body .markdown-alert-important {
|
|
159
|
+
--md2pdf-callout: #5b3f8c;
|
|
160
|
+
}
|
|
161
|
+
.markdown-body .markdown-alert-warning {
|
|
162
|
+
--md2pdf-callout: #94600c;
|
|
163
|
+
}
|
|
164
|
+
.markdown-body .markdown-alert-caution {
|
|
165
|
+
--md2pdf-callout: #a32a2a;
|
|
166
|
+
}
|
|
167
|
+
.markdown-body .markdown-alert-quote {
|
|
168
|
+
--md2pdf-callout: var(--md2pdf-muted);
|
|
169
|
+
}
|
|
170
|
+
.markdown-body .markdown-alert-title {
|
|
171
|
+
margin-bottom: calc(0.4em * var(--md2pdf-space));
|
|
172
|
+
color: var(--md2pdf-callout);
|
|
173
|
+
font-family: var(--md2pdf-heading-font);
|
|
174
|
+
font-size: 0.8em;
|
|
175
|
+
font-weight: bold;
|
|
176
|
+
letter-spacing: 0.06em;
|
|
177
|
+
text-transform: uppercase;
|
|
178
|
+
}
|
|
179
|
+
.markdown-body .markdown-alert-title .octicon {
|
|
180
|
+
margin-right: 0.5em;
|
|
181
|
+
vertical-align: -0.1em;
|
|
182
|
+
width: 1.1em;
|
|
183
|
+
height: 1.1em;
|
|
184
|
+
fill: currentColor;
|
|
185
|
+
}
|
|
186
|
+
.markdown-body .markdown-alert > :last-child {
|
|
187
|
+
margin-bottom: 0;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
/* Code */
|
|
191
|
+
|
|
192
|
+
.markdown-body code,
|
|
193
|
+
.markdown-body kbd {
|
|
194
|
+
font-family: var(--md2pdf-code-font);
|
|
195
|
+
font-size: 0.85em;
|
|
196
|
+
}
|
|
197
|
+
.markdown-body :not(pre) > code {
|
|
198
|
+
background: var(--md2pdf-surface);
|
|
199
|
+
padding: 0.1em 0.3em;
|
|
200
|
+
border-radius: 2px;
|
|
201
|
+
}
|
|
202
|
+
.markdown-body kbd {
|
|
203
|
+
padding: 0.05em 0.35em;
|
|
204
|
+
border: 0.75pt solid var(--md2pdf-rule);
|
|
205
|
+
border-bottom-width: 1.5pt;
|
|
206
|
+
border-radius: 2px;
|
|
207
|
+
}
|
|
208
|
+
.markdown-body pre {
|
|
209
|
+
margin: 0 0 calc(1em * var(--md2pdf-space));
|
|
210
|
+
padding: 0.8em 1em;
|
|
211
|
+
background: #f6f8fa;
|
|
212
|
+
border: 0.75pt solid var(--md2pdf-rule);
|
|
213
|
+
line-height: calc(1 + 0.45 * var(--md2pdf-leading));
|
|
214
|
+
white-space: pre-wrap;
|
|
215
|
+
word-break: break-word;
|
|
216
|
+
break-inside: avoid;
|
|
217
|
+
}
|
|
218
|
+
.markdown-body pre code {
|
|
219
|
+
font-size: calc(8.5 / 10.5 * var(--md2pdf-font-size));
|
|
220
|
+
}
|
|
221
|
+
/* A highlight.js theme on the host page styles .hljs too; keep code blocks this style's own. */
|
|
222
|
+
.markdown-body pre code.hljs {
|
|
223
|
+
display: inline;
|
|
224
|
+
overflow: visible;
|
|
225
|
+
padding: 0;
|
|
226
|
+
color: inherit;
|
|
227
|
+
background: none;
|
|
228
|
+
}
|
|
229
|
+
/* And its tokens: this outranks a theme's token rules, and this style's colors come after it. */
|
|
230
|
+
.markdown-body [class*="hljs-"] {
|
|
231
|
+
color: inherit;
|
|
232
|
+
background: none;
|
|
233
|
+
font-style: inherit;
|
|
234
|
+
font-weight: inherit;
|
|
235
|
+
text-decoration: none;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
.markdown-body .hljs-comment,
|
|
239
|
+
.markdown-body .hljs-quote {
|
|
240
|
+
color: #6a7686;
|
|
241
|
+
font-style: italic;
|
|
242
|
+
}
|
|
243
|
+
.markdown-body .hljs-keyword,
|
|
244
|
+
.markdown-body .hljs-selector-tag,
|
|
245
|
+
.markdown-body .hljs-literal,
|
|
246
|
+
.markdown-body .hljs-doctag {
|
|
247
|
+
color: #1f3a5f;
|
|
248
|
+
font-weight: bold;
|
|
249
|
+
}
|
|
250
|
+
.markdown-body .hljs-string,
|
|
251
|
+
.markdown-body .hljs-regexp,
|
|
252
|
+
.markdown-body .hljs-addition {
|
|
253
|
+
color: #2f6b3b;
|
|
254
|
+
}
|
|
255
|
+
.markdown-body .hljs-number,
|
|
256
|
+
.markdown-body .hljs-symbol,
|
|
257
|
+
.markdown-body .hljs-bullet {
|
|
258
|
+
color: #9a4a12;
|
|
259
|
+
}
|
|
260
|
+
.markdown-body .hljs-title,
|
|
261
|
+
.markdown-body .hljs-section,
|
|
262
|
+
.markdown-body .hljs-name {
|
|
263
|
+
color: #0f5f8a;
|
|
264
|
+
}
|
|
265
|
+
.markdown-body .hljs-built_in,
|
|
266
|
+
.markdown-body .hljs-type,
|
|
267
|
+
.markdown-body .hljs-attr,
|
|
268
|
+
.markdown-body .hljs-attribute,
|
|
269
|
+
.markdown-body .hljs-variable,
|
|
270
|
+
.markdown-body .hljs-template-variable {
|
|
271
|
+
color: #6a3d8a;
|
|
272
|
+
}
|
|
273
|
+
.markdown-body .hljs-meta,
|
|
274
|
+
.markdown-body .hljs-deletion {
|
|
275
|
+
color: #a3271f;
|
|
276
|
+
}
|
|
277
|
+
.markdown-body .hljs-emphasis {
|
|
278
|
+
font-style: italic;
|
|
279
|
+
}
|
|
280
|
+
.markdown-body .hljs-strong {
|
|
281
|
+
font-weight: bold;
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
/* Tables: full grid, shaded header, sans-serif figures that line up. */
|
|
285
|
+
|
|
286
|
+
.markdown-body table {
|
|
287
|
+
width: 100%;
|
|
288
|
+
border-collapse: collapse;
|
|
289
|
+
margin: calc(1em * var(--md2pdf-space)) 0 calc(1.2em * var(--md2pdf-space));
|
|
290
|
+
font-family: var(--md2pdf-heading-font);
|
|
291
|
+
font-size: calc(9 / 10.5 * var(--md2pdf-font-size));
|
|
292
|
+
font-variant-numeric: tabular-nums;
|
|
293
|
+
}
|
|
294
|
+
.markdown-body th,
|
|
295
|
+
.markdown-body td {
|
|
296
|
+
padding: 0.45em 0.7em;
|
|
297
|
+
text-align: left;
|
|
298
|
+
border: 0.75pt solid var(--md2pdf-rule);
|
|
299
|
+
}
|
|
300
|
+
.markdown-body th {
|
|
301
|
+
background: var(--md2pdf-surface);
|
|
302
|
+
color: var(--md2pdf-accent);
|
|
303
|
+
font-weight: bold;
|
|
304
|
+
}
|
|
305
|
+
.markdown-body tr {
|
|
306
|
+
break-inside: avoid;
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
/* Rules, images and diagrams */
|
|
310
|
+
|
|
311
|
+
.markdown-body hr {
|
|
312
|
+
margin: calc(1.6em * var(--md2pdf-space)) 0;
|
|
313
|
+
border: 0;
|
|
314
|
+
border-top: 0.75pt solid var(--md2pdf-rule);
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
.markdown-body img {
|
|
318
|
+
display: block;
|
|
319
|
+
max-width: 100%;
|
|
320
|
+
margin: calc(1em * var(--md2pdf-space)) auto;
|
|
321
|
+
break-inside: avoid;
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
/* Footnotes */
|
|
325
|
+
|
|
326
|
+
.markdown-body hr.footnotes-sep {
|
|
327
|
+
display: none;
|
|
328
|
+
}
|
|
329
|
+
.markdown-body .footnotes {
|
|
330
|
+
margin-top: calc(2.4em * var(--md2pdf-space));
|
|
331
|
+
padding-top: 0.8em;
|
|
332
|
+
border-top: 0.75pt solid var(--md2pdf-rule);
|
|
333
|
+
font-size: calc(8.5 / 10.5 * var(--md2pdf-font-size));
|
|
334
|
+
color: var(--md2pdf-muted);
|
|
335
|
+
}
|
|
336
|
+
.markdown-body .footnotes ol {
|
|
337
|
+
padding-left: 1.3em;
|
|
338
|
+
}
|
|
339
|
+
.markdown-body .footnotes p {
|
|
340
|
+
margin: 0 0 calc(0.3em * var(--md2pdf-space));
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
/* An Obsidian embed (![[Other note]]) that can't be shown: a muted placeholder. */
|
|
344
|
+
.markdown-body .markdown-embed {
|
|
345
|
+
color: var(--md2pdf-muted);
|
|
346
|
+
font-style: italic;
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
/* <div class="page-break"></div> starts a new page. */
|
|
350
|
+
.markdown-body .page-break {
|
|
351
|
+
break-after: page;
|
|
352
|
+
}
|