Skip to content

Commit 23f7614

Browse files
committed
Allow line-stretch to be a unitless number
1 parent ed9ea28 commit 23f7614

File tree

4 files changed

+22
-4
lines changed

4 files changed

+22
-4
lines changed

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12252,7 +12252,12 @@ var require_yaml_intelligence_resources = __commonJS({
1225212252
},
1225312253
{
1225412254
name: "linestretch",
12255-
schema: "string",
12255+
schema: {
12256+
anyOf: [
12257+
"string",
12258+
"number"
12259+
]
12260+
},
1225612261
tags: {
1225712262
formats: [
1225812263
"$html-files",

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

Lines changed: 6 additions & 1 deletion
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: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5231,7 +5231,12 @@
52315231
},
52325232
{
52335233
"name": "linestretch",
5234-
"schema": "string",
5234+
"schema": {
5235+
"anyOf": [
5236+
"string",
5237+
"number"
5238+
]
5239+
},
52355240
"tags": {
52365241
"formats": [
52375242
"$html-files",

src/resources/schema/document-fonts.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,10 @@
212212
description: The line height, for example, `12p`.
213213

214214
- name: linestretch
215-
schema: string
215+
schema:
216+
anyOf:
217+
- string
218+
- number
216219
tags:
217220
formats: [$html-files, context, $pdf-all]
218221
description:

0 commit comments

Comments
 (0)