Skip to content

Commit

Permalink
Allow pymdownx.magiclink without arguments in schema
Browse files Browse the repository at this point in the history
  • Loading branch information
squidfunk committed Jul 3, 2022
1 parent 4151f32 commit adabdd0
Showing 1 changed file with 33 additions and 22 deletions.
55 changes: 33 additions & 22 deletions docs/schema/extensions/pymdownx.json
Original file line number Diff line number Diff line change
Expand Up @@ -299,35 +299,46 @@
]
},
{
"type": "object",
"properties": {
"pymdownx.magiclink": {
"oneOf": [
{
"title": "MagicLink – Python Markdown Extensions",
"markdownDescription": "https://facelessuser.github.io/pymdown-extensions/extensions/magiclink/",
"enum": [
"pymdownx.magiclink"
]
},
{
"type": "object",
"properties": {
"user": {
"markdownDescription": "https://facelessuser.github.io/pymdown-extensions/extensions/magiclink/#options",
"type": "string"
},
"repo": {
"markdownDescription": "https://facelessuser.github.io/pymdown-extensions/extensions/magiclink/#options",
"type": "string"
},
"repo_url_shorthand": {
"markdownDescription": "https://facelessuser.github.io/pymdown-extensions/extensions/magiclink/#options",
"type": "boolean",
"default": true
"pymdownx.magiclink": {
"title": "MagicLink – Python Markdown Extensions",
"markdownDescription": "https://facelessuser.github.io/pymdown-extensions/extensions/magiclink/",
"type": "object",
"properties": {
"user": {
"markdownDescription": "https://facelessuser.github.io/pymdown-extensions/extensions/magiclink/#options",
"type": "string"
},
"repo": {
"markdownDescription": "https://facelessuser.github.io/pymdown-extensions/extensions/magiclink/#options",
"type": "string"
},
"repo_url_shorthand": {
"markdownDescription": "https://facelessuser.github.io/pymdown-extensions/extensions/magiclink/#options",
"type": "boolean",
"default": true
}
},
"additionalProperties": false,
"required": [
"user",
"repo"
]
}
},
"additionalProperties": false,
"required": [
"user",
"repo"
]
"additionalProperties": false
}
},
"additionalProperties": false
]
},
{
"oneOf": [
Expand Down

0 comments on commit adabdd0

Please sign in to comment.