-
-
Notifications
You must be signed in to change notification settings - Fork 7.7k
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
Enable markdown attributes for dt elements #11566
Comments
instinctively I'd expect this to be configurable via |
Is is possible to do:
? Not saying that it's great, but then again, having stable IDs have its benefits. |
@bep that would add the ID to the |
I'd also want some form of toggle for the ID behaviour, purely for the sake of not needing them, but also because the content of (A render hook would be appreciated) |
Thinking about this more, adding the ability to set markdown attributes on
Notes:
|
I have added auto ID support for dt in #13404 -- I agree that it would also be nice to be able to manually override these IDs, but that needs to be implemented in the upstream extension: |
Fixes gohugoio#13403 See gohugoio#11566 Co-authored-by: Joe Mooring <[email protected]>
Fixes gohugoio#13403 See gohugoio#11566 Co-authored-by: Joe Mooring <[email protected]>
Fixes #13403 See #11566 Co-authored-by: Joe Mooring <[email protected]>
This markdown:
is currently rendered to:
but what I really, really want is:
This would allow us to manually link to the term, which would be very useful on documentation sites, our documentation site in particular.
ID's should be assigned using the same logic as heading id's... use GitHub id format, and increment as needed to prevent duplicates on the same page (that means checking heading id's as well).
Other thoughts:
.Fragments
map as well (perhaps useful for.Related
).Reference: https://discourse.gohugo.io/t/automatically-add-id-attribute-to-dt-element/38191
The text was updated successfully, but these errors were encountered: