Skip to content

Commit c447f04

Browse files
committed
restrict preview-mode to jats and gfm
1 parent f73a19c commit c447f04

File tree

4 files changed

+20
-0
lines changed

4 files changed

+20
-0
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15220,6 +15220,12 @@ var require_yaml_intelligence_resources = __commonJS({
1522015220
{
1522115221
name: "preview-mode",
1522215222
schema: "string",
15223+
tags: {
15224+
formats: [
15225+
"$jats-all",
15226+
"gfm"
15227+
]
15228+
},
1522315229
description: {
1522415230
short: "The mode to use when previewing this document.",
1522515231
long: "The mode to use when previewing this document. To disable any special\npreviewing features, pass `raw` as the preview-mode.\n"

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

Lines changed: 6 additions & 0 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: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8196,6 +8196,12 @@
81968196
{
81978197
"name": "preview-mode",
81988198
"schema": "string",
8199+
"tags": {
8200+
"formats": [
8201+
"$jats-all",
8202+
"gfm"
8203+
]
8204+
},
81998205
"description": {
82008206
"short": "The mode to use when previewing this document.",
82018207
"long": "The mode to use when previewing this document. To disable any special\npreviewing features, pass `raw` as the preview-mode.\n"

src/resources/schema/document-options.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -316,6 +316,8 @@
316316
317317
- name: preview-mode
318318
schema: string
319+
tags:
320+
formats: [$jats-all, gfm]
319321
description:
320322
short: "The mode to use when previewing this document."
321323
long: |

0 commit comments

Comments
 (0)