You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the same option name is defined in multiple schema YAML files,
objectRefSchemaFromGlob() silently overwrites — last writer wins. This
caused validation errors for valid values matching a "losing" variant.
- Add `enum: [false]` to `logo-light-dark-specifier-path-optional` so
`logo: false` validates for all formats (dashboard, revealjs, typst)
- Consolidate `subject` schema into document-metadata.yml as
`anyOf: [string, object]` covering both simple and structured epub forms
- Remove duplicate `subject` entry from document-epub.yml
- Add unit tests for both cases
Copy file name to clipboardExpand all lines: src/resources/editor/tools/vs-code.mjs
+51-55Lines changed: 51 additions & 55 deletions
Original file line number
Diff line number
Diff line change
@@ -12221,8 +12221,13 @@ var require_yaml_intelligence_resources = __commonJS({
12221
12221
},
12222
12222
{
12223
12223
id: "logo-light-dark-specifier-path-optional",
12224
-
description: "Any of the ways a logo can be specified: string, object, or light/dark object of string or object\n",
12224
+
description: "Any of the ways a logo can be specified: string, object, or light/dark object of string or object. Use `false` to explicitly disable the logo.\n",
12225
12225
anyOf: [
12226
+
{
12227
+
enum: [
12228
+
false
12229
+
]
12230
+
},
12226
12231
{
12227
12232
ref: "logo-specifier-path-optional"
12228
12233
},
@@ -14590,42 +14595,6 @@ var require_yaml_intelligence_resources = __commonJS({
14590
14595
},
14591
14596
description: "Contributors to this publication."
14592
14597
},
14593
-
{
14594
-
name: "subject",
14595
-
tags: {
14596
-
formats: [
14597
-
"$epub-all"
14598
-
]
14599
-
},
14600
-
schema: {
14601
-
anyOf: [
14602
-
"string",
14603
-
{
14604
-
object: {
14605
-
closed: true,
14606
-
properties: {
14607
-
text: {
14608
-
string: {
14609
-
description: "The subject text."
14610
-
}
14611
-
},
14612
-
authority: {
14613
-
string: {
14614
-
description: "An EPUB reserved authority value."
14615
-
}
14616
-
},
14617
-
term: {
14618
-
string: {
14619
-
description: "The subject term (defined by the schema)."
14620
-
}
14621
-
}
14622
-
}
14623
-
}
14624
-
}
14625
-
]
14626
-
},
14627
-
description: "The subject of the publication."
14628
-
},
14629
14598
{
14630
14599
name: "type",
14631
14600
tags: {
@@ -17213,12 +17182,39 @@ var require_yaml_intelligence_resources = __commonJS({
17213
17182
},
17214
17183
{
17215
17184
name: "subject",
17216
-
schema: "string",
17185
+
schema: {
17186
+
anyOf: [
17187
+
"string",
17188
+
{
17189
+
object: {
17190
+
closed: true,
17191
+
properties: {
17192
+
text: {
17193
+
string: {
17194
+
description: "The subject text."
17195
+
}
17196
+
},
17197
+
authority: {
17198
+
string: {
17199
+
description: "An EPUB reserved authority value."
17200
+
}
17201
+
},
17202
+
term: {
17203
+
string: {
17204
+
description: "The subject term (defined by the schema)."
17205
+
}
17206
+
}
17207
+
}
17208
+
}
17209
+
}
17210
+
]
17211
+
},
17217
17212
tags: {
17218
17213
formats: [
17219
17214
"$pdf-all",
17220
17215
"$office-all",
17221
-
"odt"
17216
+
"odt",
17217
+
"$epub-all"
17222
17218
]
17223
17219
},
17224
17220
description: "The document subject"
@@ -23292,17 +23288,17 @@ var require_yaml_intelligence_resources = __commonJS({
23292
23288
"Sets the CSS <code>color</code> property.",
23293
23289
{
23294
23290
short: "Sets the color of hyperlinks in the document.",
23295
-
long: 'For HTML output, sets the CSS <code>color</code> property on all\nlinks.\nFor LaTeX output, The color used for internal links using color\noptions allowed by <a href="https://ctan.org/pkg/xcolor"><code>xcolor</code></a>, including\nthe <code>dvipsnames</code>, <code>svgnames</code>, and\n<code>x11names</code> lists.\nFor ConTeXt output, sets the color for both external links and links\nwithin the document.'
23291
+
long: 'For HTML output, sets the CSS <code>color</code> property on all\nlinks.\nFor LaTeX output, The color used for internal links using color\noptions allowed by <a href="https://ctan.org/pkg/xcolor"><code>xcolor</code></a>, including\nthe <code>dvipsnames</code>, <code>svgnames</code>, and\n<code>x11names</code> lists.\nFor ConTeXt output, sets the color for both external links and links\nwithin the document.\nFor Typst output, sets the color of internal hyperlinks using Typst\ncolor syntax.'
23296
23292
},
23297
23293
"Sets the CSS <code>background-color</code> property on code elements\nand adds extra padding.",
23298
23294
"Sets the CSS <code>background-color</code> property on the html\nelement.",
23299
23295
{
23300
-
short: "The color used for external links using color options allowed by\n<code>xcolor</code>",
23301
-
long: 'The color used for external links using color options allowed by <a href="https://ctan.org/pkg/xcolor"><code>xcolor</code></a>, including\nthe <code>dvipsnames</code>, <code>svgnames</code>, and\n<code>x11names</code> lists.'
23296
+
short: "The color used for external links.",
23297
+
long: 'For LaTeX output, the color used for external links using color\noptions allowed by <a href="https://ctan.org/pkg/xcolor"><code>xcolor</code></a>, including\nthe <code>dvipsnames</code>, <code>svgnames</code>, and\n<code>x11names</code> lists.\nFor Typst output, sets the color of external file links using Typst\ncolor syntax.'
23302
23298
},
23303
23299
{
23304
-
short: "The color used for citation links using color options allowed by\n<code>xcolor</code>",
23305
-
long: 'The color used for citation links using color options allowed by <a href="https://ctan.org/pkg/xcolor"><code>xcolor</code></a>, including\nthe <code>dvipsnames</code>, <code>svgnames</code>, and\n<code>x11names</code> lists.'
23300
+
short: "The color used for citation links.",
23301
+
long: 'For LaTeX output, the color used for citation links using color\noptions allowed by <a href="https://ctan.org/pkg/xcolor"><code>xcolor</code></a>, including\nthe <code>dvipsnames</code>, <code>svgnames</code>, and\n<code>x11names</code> lists.\nFor Typst output, sets the color of citation links using Typst color\nsyntax.'
23306
23302
},
23307
23303
{
23308
23304
short: "The color used for linked URLs using color options allowed by\n<code>xcolor</code>",
@@ -23498,6 +23494,10 @@ var require_yaml_intelligence_resources = __commonJS({
23498
23494
short: "Sets the font used for when displaying code.",
23499
23495
long: 'For HTML output, sets the CSS font-family property on code\nelements.\nFor PowerPoint output, sets the font used for code.\nFor LaTeX output, the monospace font family for use with\n<code>xelatex</code> or <code>lualatex</code>: take the name of any\nsystem font, using the <a href="https://ctan.org/pkg/fontspec"><code>fontspec</code></a>\npackage.\nFor ConTeXt output, the monspace font family. Use the name of any\nsystem font. See <a href="https://wiki.contextgarden.net/Fonts">ConTeXt\nFonts</a> for more information.'
23500
23496
},
23497
+
{
23498
+
short: "Sets the font used for code in Typst output.",
23499
+
long: "For Typst output, sets the font used for displaying code. Takes the\nname of any font available to Typst (system fonts or fonts in\ndirectories specified by <code>font-paths</code>)."
23500
+
},
23501
23501
{
23502
23502
short: "Sets the main font size for the document.",
23503
23503
long: "For HTML output, sets the base CSS <code>font-size</code>\nproperty.\nFor LaTeX and ConTeXt output, sets the font size for the document\nbody text."
@@ -23519,8 +23519,8 @@ var require_yaml_intelligence_resources = __commonJS({
23519
23519
long: 'The sans serif font family for use with <code>xelatex</code> or\n<code>lualatex</code>. Takes the name of any system font, using the <a href="https://ctan.org/pkg/fontspec"><code>fontspec</code></a>\npackage.'
23520
23520
},
23521
23521
{
23522
-
short: "The math font family for use with <code>xelatex</code> or\n<code>lualatex</code>.",
23523
-
long: 'The math font family for use with<code>xelatex</code> or\n<code>lualatex</code>. Takes the name of any system font, using the <a href="https://ctan.org/pkg/fontspec"><code>fontspec</code></a>\npackage.'
23522
+
short: "The math font family for use with <code>xelatex</code>,\n<code>lualatex</code>, or Typst.",
23523
+
long: 'For LaTeX output, the math font family for use with\n<code>xelatex</code> or<code>lualatex</code>. Takes the name of any\nsystem font, using the <a href="https://ctan.org/pkg/fontspec"><code>fontspec</code></a>\npackage.\nFor Typst output, sets the font used for mathematical content.'
23524
23524
},
23525
23525
{
23526
23526
short: "The CJK main font family for use with <code>xelatex</code> or\n<code>lualatex</code>.",
@@ -23558,7 +23558,7 @@ var require_yaml_intelligence_resources = __commonJS({
23558
23558
"The line height, for example, <code>12p</code>.",
23559
23559
{
23560
23560
short: "Sets the line height or spacing for text in the document.",
23561
-
long: 'For HTML output sets the CSS <code>line-height</code> property on the\nhtml element, which is preferred to be unitless.\nFor LaTeX output, adjusts line spacing using the <a href="https://ctan.org/pkg/setspace">setspace</a> package, e.g. 1.25,\n1.5.'
23561
+
long: 'For HTML output sets the CSS <code>line-height</code> property on the\nhtml element, which is preferred to be unitless.\nFor LaTeX output, adjusts line spacing using the <a href="https://ctan.org/pkg/setspace">setspace</a> package, e.g. 1.25,\n1.5.\nFor Typst output, adjusts the spacing between lines of text.'
23562
23562
},
23563
23563
"Adjusts line spacing using the <code>\\setupinterlinespace</code>\ncommand.",
23564
23564
"The typeface style for links in the document.",
@@ -25132,11 +25132,7 @@ var require_yaml_intelligence_resources = __commonJS({
25132
25132
"Disambiguating year suffix in author-date styles (e.g. \u201Ca\u201D in \u201CDoe,\n1999a\u201D).",
25133
25133
"Manuscript configuration",
25134
25134
"internal-schema-hack",
25135
-
"List execution engines you want to give priority when determining\nwhich engine should render a notebook. If two engines have support for a\nnotebook, the one listed earlier will be chosen. Quarto\u2019s default order\nis \u2018knitr\u2019, \u2018jupyter\u2019, \u2018markdown\u2019, \u2018julia\u2019.",
25136
-
{
25137
-
short: "Sets the font used for code in Typst output.",
25138
-
long: "For Typst output, sets the font used for displaying code. Takes the\nname of any font available to Typst (system fonts or fonts in\ndirectories specified by <code>font-paths</code>)."
25139
-
}
25135
+
"List execution engines you want to give priority when determining\nwhich engine should render a notebook. If two engines have support for a\nnotebook, the one listed earlier will be chosen. Quarto\u2019s default order\nis \u2018knitr\u2019, \u2018jupyter\u2019, \u2018markdown\u2019, \u2018julia\u2019."
25140
25136
],
25141
25137
"schema/external-schemas.yml": [
25142
25138
{
@@ -25366,12 +25362,12 @@ var require_yaml_intelligence_resources = __commonJS({
25366
25362
mermaid: "%%"
25367
25363
},
25368
25364
"handlers/mermaid/schema.yml": {
25369
-
_internalId: 222606,
25365
+
_internalId: 222775,
25370
25366
type: "object",
25371
25367
description: "be an object",
25372
25368
properties: {
25373
25369
"mermaid-format": {
25374
-
_internalId: 222598,
25370
+
_internalId: 222767,
25375
25371
type: "enum",
25376
25372
enum: [
25377
25373
"png",
@@ -25387,7 +25383,7 @@ var require_yaml_intelligence_resources = __commonJS({
0 commit comments