Slugs for content tab anchor links that use headers in slug #5675
Unanswered
chipsenkbeil
asked this question in
Q&A
Replies: 2 comments 1 reply
-
|
Beta Was this translation helpful? Give feedback.
1 reply
-
This feature will be added to the next version of Pymdown Extensions. It will be supported under the legacy format:
And the new block format:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Problem
When clicking on the tabs from content tabs that have the same names, I get links like these:
What I'd really like is to have the headers factor into the slug:
Is there any way to achieve this today? I was trying to figure out if I could write my own python function, but I couldn't easily determine that nor could I determine if there was a way to get the header(s) preceding a content tab.
Yaml Config
My
mkdocs.yml
has readable slugs:Markdown
My markdown is using content tabs with a header to delineate:
Beta Was this translation helpful? Give feedback.
All reactions