naucse.python.cz icon indicating copy to clipboard operation
naucse.python.cz copied to clipboard

Anchors missing

Open hroncok opened this issue 6 years ago • 4 comments

h2s 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/)

hroncok avatar Oct 04 '17 16:10 hroncok

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?

encukou avatar Oct 06 '17 10:10 encukou

So the id attribute of the heading should be hardcoded, not slugged?

hroncok avatar Oct 09 '17 15:10 hroncok

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.

encukou avatar Oct 10 '17 09:10 encukou

Got it. :thinking:

hroncok avatar Oct 10 '17 09:10 hroncok