naucse.python.cz
naucse.python.cz copied to clipboard
Anchors missing
h2
s don't have anchors to link to (such as on a session/lecture page as for example http://naucse.python.cz/2017/pyladies-praha-podzim-ntk/beginners/str/)
Since anchor names are part of the URL (which is our "API"), we shouldn't generate anchor names from the heading text (so we can reword headings later).
Also, a rendered header should include a link to itself, so the URL is discoverable.
Maybe there's already a MD extension to do this?
So the id attribute of the heading should be hardcoded, not slugged?
I think that's the best way to solve this, yes.
When someone rewords/removes a section heading, I'd expect that neither that person nor the reviewer will even think about the effect on URL stability. And I'd rather provide no section links at all than ones that can change arbitrarily.
Got it. :thinking: