-
Notifications
You must be signed in to change notification settings - Fork 432
Expand file tree
/
Copy pathdocument-render.yml
More file actions
241 lines (215 loc) · 7.96 KB
/
document-render.yml
File metadata and controls
241 lines (215 loc) · 7.96 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
- name: from
alias: reader
schema: string
default: markdown
description:
short: "Format to read from"
long: |
Format to read from. Extensions can be individually enabled or disabled by appending +EXTENSION or -EXTENSION to the format name (e.g. markdown+emoji).
- name: output-file
schema:
ref: pandoc-format-output-file
default: "Input filename with output extension (e.g. .pdf, .html, etc.)"
description: "Output file to write to"
- name: output-ext
schema: string
description: |
Extension to use for generated output file
- name: output-suffix
schema: string
description: |
Suffix to append to the output filename stem (before the extension).
For example, with `output-suffix: "-slides"`, `presentation.qmd`
becomes `presentation-slides.html`.
- name: template
disabled: [$office-all, ipynb]
schema: path
description: |
Use the specified file as a custom template for the generated document.
- name: template-partials
disabled: [$office-all, ipynb]
schema:
maybeArrayOf: path
description: |
Include the specified files as partials accessible to the template for the generated content.
- name: embed-resources
tags:
formats: [$html-files]
schema: boolean
default: false
description:
short: "Produce a standalone HTML file with no external dependencies"
long: |
Produce a standalone HTML file with no external dependencies, using
`data:` URIs to incorporate the contents of linked scripts, stylesheets,
images, and videos. The resulting file should be "self-contained," in the
sense that it needs no external files and no net access to be displayed
properly by a browser. This option works only with HTML output formats,
including `html4`, `html5`, `html+lhs`, `html5+lhs`, `s5`, `slidy`,
`slideous`, `dzslides`, and `revealjs`. Scripts, images, and stylesheets at
absolute URLs will be downloaded; those at relative URLs will be sought
relative to the working directory (if the first source
file is local) or relative to the base URL (if the first source
file is remote). Elements with the attribute
`data-external="1"` will be left alone; the documents they
link to will not be incorporated in the document.
Limitation: resources that are loaded dynamically through
JavaScript cannot be incorporated; as a result, some
advanced features (e.g. zoom or speaker notes) may not work
in an offline "self-contained" `reveal.js` slide show.
- name: self-contained
tags:
formats: [$html-files]
schema: boolean
default: false
hidden: true
description:
short: "Produce a standalone HTML file with no external dependencies"
long: |
Produce a standalone HTML file with no external dependencies. Note that
this option has been deprecated in favor of `embed-resources`.
- name: self-contained-math
tags:
formats: [$html-files]
schema: boolean
default: false
description:
short: "Embed math libraries (e.g. MathJax) within `self-contained` output."
long: |
Embed math libraries (e.g. MathJax) within `self-contained` output.
Note that math libraries are not embedded by default because they are
quite large and often time consuming to download.
- name: filters
schema:
ref: pandoc-format-filters
description: |
Specify executables or Lua scripts to be used as a filter transforming
the pandoc AST after the input is parsed and before the output is written.
- name: shortcodes
schema:
ref: pandoc-shortcodes
description: |
Specify Lua scripts that implement shortcode handlers
- name: keep-md
schema: boolean
default: false
tags:
contexts: [document-execute]
description: "Keep the markdown file generated by executing code"
- name: keep-ipynb
schema: boolean
default: false
tags:
contexts: [document-execute]
description: "Keep the notebook file generated from executing code."
- name: ipynb-filters
schema:
arrayOf: "string"
tags:
contexts: [document-execute]
description: "Filters to pre-process ipynb files before rendering to markdown"
- name: ipynb-shell-interactivity
schema:
enum: [null, all, last, last_expr, none, last_expr_or_assign]
tags:
contexts: [document-execute]
engine: jupyter
description: |
Specify which nodes should be run interactively (displaying output from expressions)
- name: plotly-connected
schema: boolean
default: false
tags:
contexts: [document-execute]
engine: jupyter
description: |
If true, use the "notebook_connected" plotly renderer, which downloads
its dependencies from a CDN and requires an internet connection to view.
- name: keep-typ
tags:
formats: [typst]
schema: boolean
default: false
description: "Keep the intermediate typst file used during render."
- name: keep-tex
tags:
formats: [pdf, beamer]
schema: boolean
default: false
description: "Keep the intermediate tex file used during render."
- name: extract-media
schema: path
description:
short: |
Extract images and other media contained in or linked from the source document to the
path DIR.
long: |
Extract images and other media contained in or linked from the source document to the
path DIR, creating it if necessary, and adjust the images references in the document
so they point to the extracted files. Media are downloaded, read from the file
system, or extracted from a binary container (e.g. docx), as needed. The original
file paths are used if they are relative paths not containing ... Otherwise filenames
are constructed from the SHA1 hash of the contents.
- name: resource-path
schema:
arrayOf: path
default: ["."]
description: |
List of paths to search for images and other resources.
- name: default-image-extension
schema: string
description:
short: |
Specify a default extension to use when image paths/URLs have no extension.
long: |
Specify a default extension to use when image paths/URLs have no
extension. This allows you to use the same source for formats that
require different kinds of images. Currently this option only affects
the Markdown and LaTeX readers.
- name: abbreviations
schema: string
description:
short: |
Specifies a custom abbreviations file, with abbreviations one to a line.
long: |
Specifies a custom abbreviations file, with abbreviations one to a line.
This list is used when reading Markdown input: strings found in this list
will be followed by a nonbreaking space, and the period will not produce sentence-ending space in formats like LaTeX. The strings may not contain
spaces.
- name: dpi
schema: number
default: 96
description:
short: |
Specify the default dpi (dots per inch) value for conversion from pixels to inch/
centimeters and vice versa.
long: |
Specify the default dpi (dots per inch) value for conversion from pixels to inch/
centimeters and vice versa. (Technically, the correct term would be ppi: pixels per
inch.) The default is `96`. When images contain information about dpi internally, the
encoded value is used instead of the default specified by this option.
- name: html-table-processing
schema:
enum: [none]
description: If `none`, do not process tables in HTML input.
- name: html-pre-tag-processing
tags:
formats: [typst]
schema:
enum: [none, parse]
description: If `none`, ignore any divs with `html-pre-tag-processing=parse` enabled.
- name: css-property-processing
tags:
formats: [typst]
schema:
enum: [none, translate]
default: translate
description:
short: CSS property translation
long: If `translate`, translate CSS properties into output format properties. If `none`, do not process css properties.
- name: use-rsvg-convert
schema: boolean
default: true
tags:
formats: [$pdf-all]
description: If `true`, attempt to use `rsvg-convert` to convert SVG images to PDF.