-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs: pymdownx.inlinehilite (via mkdocs-gallery) breaking autorefs #584
Comments
Oh noooo 😢 |
I looked at this problem more today.
See here for the example repository: https://github.com/GenevieveBuckley/test-mkdocs-links I originally thought there might be some bad interaction between the I don't have any more time to dedicate to this, but wanted to share what I had anyway. |
Thanks so much @GenevieveBuckley, I appreciate you taking a look and the minimal repo is very useful. I'll take it from here and see what I can figure out |
ok, I was able to determine that this isn't an issue with mkdocs-gallery per se, but rather the addition of With this mkdocs config: site_name: My Docs
markdown_extensions:
- pymdownx.inlinehilite
plugins:
- mkdocstrings I can reproduce the issue on a tiny little docs site: This breaks: # Welcome to MkDocs
[`thing.MyClass`][]
::: thing.MyClass
whereas using |
related issue on autorefs here: mkdocstrings/autorefs#34 |
You narrowed that down impressively fast, nice work! |
Hey @GenevieveBuckley,
I just noticed an unfortunate problem with mkdocs-gallery that might require a reversion of #571 . Any mkdocstrings link that uses backticks for formatting like
[`magicgui.some.class`][]
(which is a lot of them) breaks when mkdocs gallery is enabled, even if it's a file that has nothing to do with an example.For example on the main widgets page:
with mkdocs-gallery enabled:
without mkdocs-gallery enabled:
The text was updated successfully, but these errors were encountered: