søren peter mørch

Conversation

Recent posts in reply to #tzc5jpa

movq (www.uninformativ.de)

Numbered headings in blog posts, yay or nay?

Biggest problem of having them: Links to section anchors (like bla.html#my-first-section) will break if I add a section later on. 🤔

https://movq.de/v/cf0903ebc3/

Read replies 5 months ago
lyse (lyse.isobeef.org)

@movq I reckon section numbers are not really needed for articles. But if you number them, the anchors should probably not contain the section number, just the title. Especially for articles that may receive updates.

It's probably another story for specifications. They're kinda fixed and thus I found it useful in the past to include the section numbers in the anchors, so they show up in URLs when linking to specific sections. W3C RFCs only include the numbering in the anchors. This makes URLs fairly short, but it would be also nice to directly see what kind of section that URL actually links to.

In reply to: #tzc5jpa 5 months ago
movq (www.uninformativ.de)

@lyse Mhm, yeah … I’ll probably not do it. Just keeping the numbers out of the anchors would be pretty hacky, I guess.

In reply to: #tzc5jpa 5 months ago
movq (www.uninformativ.de)

@lyse Besides, have a look at https://movq.de/v/cf0903ebc3/numb.png again: When it goes from item 9 to item 10, the indentation of the text (after the number) changes. Pretty ugly. In other words, a table of contents should be a table, not a list like it is at the moment. And that would require me to write my own extension for python-markdown … Probably not worth it.

In reply to: #tzc5jpa 5 months ago
Reply via email