theoveenker Hi all, I have a page containing section titles like this: 2017-09-01: Release 1.2.3 The anchor DokuWiki creates for this section is #release_123 whereas I expected/want it to be #2017090_release_123 If I prefix the date with a letter it behaves as expected: a2017-09-01: Release 1.2.3 This yields #a2017090_release_123 Is is possible to make DokuWiki include any leading digits in section titles in the anchor? Or can I force the anchor it should create?
virk No, I do not know, whether it's intentional or not. BTW: I was trying to find a workaround this morning while I was sitting at breakfast table. I found out, that prefixing with a letter this would be a work-around. I posted this. Then I again read your initial post and understood that you already discovered the same work-around :-) So I edited my post again and added the "Fuck:…"-sentence :-)
theoveenker Haha. Actually using Date was a good suggestion. I didn't find a better word yet. If only I could prefix the section title with an invisible letter... But I think I'll try circumvent the problem by reorganizing my stuff (release notes of two applications) a bit.
virk Perhaps, if your section title starts with a letter instead of a digit like "Date 2017-09-01: Release 1.2.3" Fuck: I just read and UNDERSTOOD your posting :-)
theoveenker Thanks. That would be good workaround if there's no other solution. Do you know if it is intentional that initial digits in section titles are skipped when creating the corresponding anchor, or is it a bug?
turnermm I think this may explain it: https://mathiasbynens.be/notes/html5-id-class HTML 4 required that ids start with a letter.
theoveenker That sounds as a valid explanation. It would have been better if DokuWiki simply inserted an underscore before the anchor if a section title starts with a digit, instead of just scrapping all the leading digits.