-
Is is possible to turn on a feature for entering a url like
so mkdocs will automatically make a hyperlink like github discussions did below (and many other markdown based sites (like stack exchange) https://github.com/squidfunk/mkdocs-material/discussions/categories/q-a if so can't find it in the docs |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 9 replies
-
The usual answer would be that there is a plugin for this but I have not been able to find one that does this. Perhaps this is because such links are not often used in published material. Perhaps I have simply missed something and someone else has more luck. You could try adding a hook that attaches to the on_page_markdown event and changes all links that are not part of the Markdown syntax into ones that are. |
Beta Was this translation helpful? Give feedback.
-
I'm late to the party, but from what I understand, Magiclink might be what you're looking for: It's already available in Material for MkDocs, since Python Markdown Extensions is a dependency: markdown_extensions:
- pymdownx.magiclink |
Beta Was this translation helpful? Give feedback.
-
...so note to self (others who found their way here) : No love in mkdocs-material docs search, then search https://facelessuser.github.io/pymdown-extensions/ b4 asking search "automatic link" or "automatic url" and magiclink is second in the results...duh. Sorry for wasting folks time. |
Beta Was this translation helpful? Give feedback.
I'm late to the party, but from what I understand, Magiclink might be what you're looking for:
https://facelessuser.github.io/pymdown-extensions/extensions/magiclink/
It's already available in Material for MkDocs, since Python Markdown Extensions is a dependency: