From d4f0b6693fc911278ceabeda5f21a71f8ff0b9b4 Mon Sep 17 00:00:00 2001 From: Yulong Ming Date: Tue, 19 Nov 2024 20:35:13 +0800 Subject: [PATCH] Added Caption extension to JSON schema (#7718) --- docs/schema/extensions/pymdownx.json | 67 ++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) diff --git a/docs/schema/extensions/pymdownx.json b/docs/schema/extensions/pymdownx.json index 9da8895fcd4..137bb304f48 100644 --- a/docs/schema/extensions/pymdownx.json +++ b/docs/schema/extensions/pymdownx.json @@ -65,6 +65,73 @@ } ] }, + { + "oneOf": [ + { + "type": "object", + "properties": { + "pymdownx.blocks.caption": { + "title": "Caption – Python Markdown Extensions", + "markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown-extensions/#caption", + "type": "object", + "properties": { + "types": { + "markdownDescription": "https://facelessuser.github.io/pymdown-extensions/extensions/blocks/plugins/caption/#global-options", + "type": "array", + "items": { + "markdownDescription": "https://facelessuser.github.io/pymdown-extensions/extensions/blocks/plugins/caption/#configuring-figure-types", + "oneOf": [ + { + "markdownDescription": "https://facelessuser.github.io/pymdown-extensions/extensions/blocks/plugins/caption/#configuring-figure-types", + "type":"string" + }, + { + "markdownDescription": "https://facelessuser.github.io/pymdown-extensions/extensions/blocks/plugins/caption/#configuring-figure-types", + "type": "object", + "properties": { + "name": { + "markdownDescription": "https://facelessuser.github.io/pymdown-extensions/extensions/blocks/plugins/caption/#configuring-figure-types", + "type": "string" + }, + "prefix": { + "markdownDescription": "https://facelessuser.github.io/pymdown-extensions/extensions/blocks/plugins/caption/#configuring-figure-types", + "type": "string" + } + } + } + ] + }, + "uniqueItems": true, + "minItems": 1 + }, + "prepend": { + "markdownDescription": "https://facelessuser.github.io/pymdown-extensions/extensions/blocks/plugins/caption/#global-options", + "type": "boolean", + "default": false + }, + "auto": { + "markdownDescription": "https://facelessuser.github.io/pymdown-extensions/extensions/blocks/plugins/caption/#global-options", + "type": "boolean", + "default": true + }, + "auto_leval": { + "markdownDescription": "https://facelessuser.github.io/pymdown-extensions/extensions/blocks/plugins/caption/#global-options", + "type": "integer", + "default": 0 + } + }, + "additionalProperties": false + } + }, + "additionalProperties": false + }, + { + "title": "Caption – Python Markdown Extensions", + "markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown-extensions/#caption", + "const": "pymdownx.blocks.caption" + } + ] + }, { "oneOf": [ {