1
0
mirror of https://github.com/squidfunk/mkdocs-material.git synced 2024-11-24 07:30:12 +01:00

Added Caption extension to JSON schema (#7718)

This commit is contained in:
Yulong Ming 2024-11-19 20:35:13 +08:00 committed by GitHub
parent 51c9f9acb0
commit d4f0b6693f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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": [ "oneOf": [
{ {