Skip to content

Commit b4b6fa9

Browse files
committed
Merge branch 'main' into feature/brand-yaml
2 parents 244cf67 + f94063c commit b4b6fa9

File tree

9 files changed

+38
-24
lines changed

9 files changed

+38
-24
lines changed

news/changelog-1.6.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ All changes included in 1.6:
1515
- ([#10168](https://github.com/quarto-dev/quarto-cli/issues/10168)): support `csl` bibliography style.
1616
- ([#10181](https://github.com/quarto-dev/quarto-cli/issues/10181)): Remove workaround for image dimensions which is no longer necessary and mishandled image paths with spaces.
1717
- ([#10217](https://github.com/quarto-dev/quarto-cli/issues/10217)): Explicitly compute units for image dimensions in `typst` format when they're not given.
18+
- ([#10212](https://github.com/quarto-dev/quarto-cli/issues/10212)): Moves Pandoc variables to the function declaration for the default template.
1819

1920
## Engines
2021

src/resources/create/extensions/format-typst/_extensions/qstart-filesafename-qend/typst-show.typ

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ $if(region)$
3838
$endif$
3939
$if(abstract)$
4040
abstract: [$abstract$],
41+
abstract-title: "$labels.abstract$",
4142
$endif$
4243
$if(margin)$
4344
margin: ($for(margin/pairs)$$margin.key$: $margin.value$,$endfor$),

src/resources/create/extensions/format-typst/_extensions/qstart-filesafename-qend/typst-template.typ

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
authors: none,
1717
date: none,
1818
abstract: none,
19+
abstract-title: none,
1920
cols: 1,
2021
margin: (x: 1.25in, y: 1.25in),
2122
paper: "us-letter",
@@ -72,7 +73,7 @@
7273

7374
if abstract != none {
7475
block(inset: 2em)[
75-
#text(weight: "semibold")[$labels.abstract$] #h(1em) #abstract
76+
#text(weight: "semibold")[#abstract-title] #h(1em) #abstract
7677
]
7778
}
7879

src/resources/editor/tools/vs-code.mjs

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11970,7 +11970,8 @@ var require_yaml_intelligence_resources = __commonJS({
1197011970
formats: [
1197111971
"$html-doc",
1197211972
"$epub-all",
11973-
"docx"
11973+
"docx",
11974+
"typst"
1197411975
]
1197511976
},
1197611977
description: "Title used to label document abstract"
@@ -21121,8 +21122,11 @@ var require_yaml_intelligence_resources = __commonJS({
2112121122
long: 'Color for links to other content within the document.\nSee <a href="https://wiki.contextgarden.net/Color">ConTeXt Color</a>\nfor additional information.'
2112221123
},
2112321124
"Configuration for document commenting.",
21124-
"Configuration for crossref labels and prefixes.",
21125-
"A custom cross reference type.",
21125+
{
21126+
short: "Configuration for cross-reference labels and prefixes.",
21127+
long: 'Configuration for cross-reference labels and prefixes. See <a href="https://quarto.org/docs/reference/metadata/crossref.html">Cross-Reference\nOptions</a> for more details.'
21128+
},
21129+
'A custom cross reference type. See <a href="https://quarto.org/docs/reference/metadata/crossref.html#custom">Custom</a>\nfor more details.',
2112621130
"The kind of cross reference (currently only \u201Cfloat\u201D is\nsupported).",
2112721131
"The prefix used in rendered references when referencing this\ntype.",
2112821132
"The prefix used in rendered captions when referencing this type. If\nomitted, the field <code>reference-prefix</code> is used.",
@@ -21893,7 +21897,6 @@ var require_yaml_intelligence_resources = __commonJS({
2189321897
"Extension to use for generated output file",
2189421898
"Use the specified file as a custom template for the generated\ndocument.",
2189521899
"Include the specified files as partials accessible to the template\nfor the generated content.",
21896-
"Produce output with an appropriate header and footer (e.g.&nbsp;a\nstandalone HTML, LaTeX, TEI, or RTF file, not a fragment)",
2189721900
{
2189821901
short: "Produce a standalone HTML file with no external dependencies",
2189921902
long: 'Produce a standalone HTML file with no external dependencies, using\n<code>data:</code> URIs to incorporate the contents of linked scripts,\nstylesheets, images, and videos. The resulting file should be\n\u201Cself-contained,\u201D in the sense that it needs no external files and no\nnet access to be displayed properly by a browser. This option works only\nwith HTML output formats, including <code>html4</code>,\n<code>html5</code>, <code>html+lhs</code>, <code>html5+lhs</code>,\n<code>s5</code>, <code>slidy</code>, <code>slideous</code>,\n<code>dzslides</code>, and <code>revealjs</code>. Scripts, images, and\nstylesheets at absolute URLs will be downloaded; those at relative URLs\nwill be sought relative to the working directory (if the first source\nfile is local) or relative to the base URL (if the first source file is\nremote). Elements with the attribute <code>data-external="1"</code> will\nbe left alone; the documents they link to will not be incorporated in\nthe document. Limitation: resources that are loaded dynamically through\nJavaScript cannot be incorporated; as a result, some advanced features\n(e.g.&nbsp;zoom or speaker notes) may not work in an offline \u201Cself-contained\u201D\n<code>reveal.js</code> slide show.'
@@ -23092,12 +23095,12 @@ var require_yaml_intelligence_resources = __commonJS({
2309223095
mermaid: "%%"
2309323096
},
2309423097
"handlers/mermaid/schema.yml": {
23095-
_internalId: 187065,
23098+
_internalId: 186714,
2309623099
type: "object",
2309723100
description: "be an object",
2309823101
properties: {
2309923102
"mermaid-format": {
23100-
_internalId: 187057,
23103+
_internalId: 186706,
2310123104
type: "enum",
2310223105
enum: [
2310323106
"png",
@@ -23113,7 +23116,7 @@ var require_yaml_intelligence_resources = __commonJS({
2311323116
exhaustiveCompletions: true
2311423117
},
2311523118
theme: {
23116-
_internalId: 187064,
23119+
_internalId: 186713,
2311723120
type: "anyOf",
2311823121
anyOf: [
2311923122
{

src/resources/editor/tools/yaml/web-worker.js

Lines changed: 10 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/resources/editor/tools/yaml/yaml-intelligence-resources.json

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4942,7 +4942,8 @@
49424942
"formats": [
49434943
"$html-doc",
49444944
"$epub-all",
4945-
"docx"
4945+
"docx",
4946+
"typst"
49464947
]
49474948
},
49484949
"description": "Title used to label document abstract"
@@ -14093,8 +14094,11 @@
1409314094
"long": "Color for links to other content within the document.\nSee <a href=\"https://wiki.contextgarden.net/Color\">ConTeXt Color</a>\nfor additional information."
1409414095
},
1409514096
"Configuration for document commenting.",
14096-
"Configuration for crossref labels and prefixes.",
14097-
"A custom cross reference type.",
14097+
{
14098+
"short": "Configuration for cross-reference labels and prefixes.",
14099+
"long": "Configuration for cross-reference labels and prefixes. See <a href=\"https://quarto.org/docs/reference/metadata/crossref.html\">Cross-Reference\nOptions</a> for more details."
14100+
},
14101+
"A custom cross reference type. See <a href=\"https://quarto.org/docs/reference/metadata/crossref.html#custom\">Custom</a>\nfor more details.",
1409814102
"The kind of cross reference (currently only “float” is\nsupported).",
1409914103
"The prefix used in rendered references when referencing this\ntype.",
1410014104
"The prefix used in rendered captions when referencing this type. If\nomitted, the field <code>reference-prefix</code> is used.",
@@ -14865,7 +14869,6 @@
1486514869
"Extension to use for generated output file",
1486614870
"Use the specified file as a custom template for the generated\ndocument.",
1486714871
"Include the specified files as partials accessible to the template\nfor the generated content.",
14868-
"Produce output with an appropriate header and footer (e.g.&nbsp;a\nstandalone HTML, LaTeX, TEI, or RTF file, not a fragment)",
1486914872
{
1487014873
"short": "Produce a standalone HTML file with no external dependencies",
1487114874
"long": "Produce a standalone HTML file with no external dependencies, using\n<code>data:</code> URIs to incorporate the contents of linked scripts,\nstylesheets, images, and videos. The resulting file should be\n“self-contained,” in the sense that it needs no external files and no\nnet access to be displayed properly by a browser. This option works only\nwith HTML output formats, including <code>html4</code>,\n<code>html5</code>, <code>html+lhs</code>, <code>html5+lhs</code>,\n<code>s5</code>, <code>slidy</code>, <code>slideous</code>,\n<code>dzslides</code>, and <code>revealjs</code>. Scripts, images, and\nstylesheets at absolute URLs will be downloaded; those at relative URLs\nwill be sought relative to the working directory (if the first source\nfile is local) or relative to the base URL (if the first source file is\nremote). Elements with the attribute <code>data-external=\"1\"</code> will\nbe left alone; the documents they link to will not be incorporated in\nthe document. Limitation: resources that are loaded dynamically through\nJavaScript cannot be incorporated; as a result, some advanced features\n(e.g.&nbsp;zoom or speaker notes) may not work in an offline “self-contained”\n<code>reveal.js</code> slide show."
@@ -16064,12 +16067,12 @@
1606416067
"mermaid": "%%"
1606516068
},
1606616069
"handlers/mermaid/schema.yml": {
16067-
"_internalId": 187065,
16070+
"_internalId": 186714,
1606816071
"type": "object",
1606916072
"description": "be an object",
1607016073
"properties": {
1607116074
"mermaid-format": {
16072-
"_internalId": 187057,
16075+
"_internalId": 186706,
1607316076
"type": "enum",
1607416077
"enum": [
1607516078
"png",
@@ -16085,7 +16088,7 @@
1608516088
"exhaustiveCompletions": true
1608616089
},
1608716090
"theme": {
16088-
"_internalId": 187064,
16091+
"_internalId": 186713,
1608916092
"type": "anyOf",
1609016093
"anyOf": [
1609116094
{

src/resources/formats/typst/pandoc/quarto/typst-show.typ

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ $if(region)$
2424
$endif$
2525
$if(abstract)$
2626
abstract: [$abstract$],
27+
abstract-title: "$labels.abstract$",
2728
$endif$
2829
$if(margin)$
2930
margin: ($for(margin/pairs)$$margin.key$: $margin.value$,$endfor$),

src/resources/formats/typst/pandoc/quarto/typst-template.typ

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
authors: none,
66
date: none,
77
abstract: none,
8+
abstract-title: none,
89
cols: 1,
910
margin: (x: 1.25in, y: 1.25in),
1011
paper: "us-letter",
@@ -61,7 +62,7 @@
6162

6263
if abstract != none {
6364
block(inset: 2em)[
64-
#text(weight: "semibold")[$labels.abstract$] #h(1em) #abstract
65+
#text(weight: "semibold")[#abstract-title] #h(1em) #abstract
6566
]
6667
}
6768

src/resources/schema/document-attributes.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@
109109
- name: abstract-title
110110
schema: string
111111
tags:
112-
formats: [$html-doc, $epub-all, docx]
112+
formats: [$html-doc, $epub-all, docx, typst]
113113
description: "Title used to label document abstract"
114114

115115
- name: notes

0 commit comments

Comments
 (0)