squidfunk / mkdocs-material

Documentation that simply works

Home Page:https://squidfunk.github.io/mkdocs-material/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

YAML schema is complaining about `pymdownx.magiclink`

Fullchee opened this issue · comments

Contribution guidelines

I've found a bug and checked that ...

  • ... the problem doesn't occur with the mkdocs or readthedocs themes
  • ... the problem persists when all overrides are removed, i.e. custom_dir, extra_javascript and extra_css
  • ... the documentation does not mention anything about my problem
  • ... there are no open or closed issues that are related to my problem

Description

In mkdocs.yml

markdown_extensions -> pymdownx.magiclink is showing an error highlight in VSCode

image

I'm not sure why, given that it's in in the schema

https://squidfunk.github.io/mkdocs-material/schema/extensions/pymdownx.json

Expected behaviour

It shouldn't be underlined with an error

Actual behaviour

It is underlined with an error

Steps to reproduce

  1. Install VSCode
  2. Install the YAML extension (by RedHat)
  3. Add pymdownx.magiclink under markdown_extensions in mkdocs.yml

Package versions

  • Python 3.9.13
  • mkdocs, version 1.3.0
  • Name: mkdocs-material Version: 8.3.8

Configuration

markdown_extensions:
  - pymdownx.magiclink


### System information

OS: macOS Monterey 12.1 (M1)

VSCode: 1.68.1

Thanks for reporting. We have the definitions for pymdowx.magiclink here:

Works on my machine, i.e. cannot reproduce:

Bildschirmfoto 2022-07-02 um 15 09 30

I now see where this is coming from – we didn't include the attribute-less version of this extension. Fixed in adabdd0.