Skip to content

Commit

Permalink
Added Caption extension to JSON schema (#7718)
Browse files Browse the repository at this point in the history
  • Loading branch information
myl7 authored Nov 19, 2024
1 parent 51c9f9a commit d4f0b66
Showing 1 changed file with 67 additions and 0 deletions.
67 changes: 67 additions & 0 deletions docs/schema/extensions/pymdownx.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
{
Expand Down

0 comments on commit d4f0b66

Please sign in to comment.