Replies: 12 comments 5 replies
-
Humbly pinging @escattone @chrisdavidmills @Elchi3 @sideshowbarker @nschonni @SphinxKnight @fiji-flo for feedback. |
Beta Was this translation helpful? Give feedback.
-
I couldn't help myself. |
Beta Was this translation helpful? Give feedback.
-
I agree. I'm not sure doing hashes on client. |
Beta Was this translation helpful? Give feedback.
-
I opened mdn/content#434, but it seems like a similar discussion. |
Beta Was this translation helpful? Give feedback.
-
I like lower case better as well. Also, should we (proactively) remove leading and trailing
It's not an issue yet, but preventing it in advance might save broken links in the future. |
Beta Was this translation helpful? Give feedback.
-
You can see how DocFX does it for the markdown headings here https://github.com/dotnet/docfx/blob/920dd053453999acfd93b4d171f55074058a9aff/src/Microsoft.DocAsCode.MarkdownLite/Basic/BlockRules/MarkdownHeadingBlockRule.cs#L52 |
Beta Was this translation helpful? Give feedback.
-
kebab-case: This should:
|
Beta Was this translation helpful? Give feedback.
-
💯% agreed on making Yari normalize all IDs. I don’t have any strong opinion on the exact normalization that should be done, but lowercase-everything sounds the simplest, so I’d be happy with that. |
Beta Was this translation helpful? Give feedback.
-
I'd prefer the lowercase-everything normalization approach just because it's simplest as well. |
Beta Was this translation helpful? Give feedback.
-
@mdn/core-dev Does this sound like a discussion we want to keep around and bring to more people's attention, or should we remove the discussion. There are, unfortunately, only two options, lock or delete. Thank you. |
Beta Was this translation helpful? Give feedback.
-
In mdn/content#578 and mdn/content#499 @bershanskiy uncovered an interesting inconsistency. Sometimes it's
<h2 id="See_Also">See Also</h2>
and sometimes it's<h2 id="See_also">See also</h2>
(and same withBrowser compatibility
vsBrowser Compatibility
). He's fixing the inconsistency and I wholeheartedly support that because consistency makes MDN look more accurate and professional and also more "accessible" to the pattern-loving brain.But his cleanup effect will break links. :(
Imagine some blog post that contains:
that link will now not go to the right section of the page :(
...once his PR lands.
But there's a solution!
We control these
<h2>
and<h3>
injections into the DOM/HTML here. So we can easily force them all to be lowercase. Then, once that's in place, we can salvage all the clicks into MDN when they arrive with a#Anchor
that's in the wrong case. Possible draft of a solution:I haven't tested it beyond the web console, but I think it'll work.
Slowly, over time, we'll get all incoming links, that use an anchor, to be in lowercase.
What do you think?
Beta Was this translation helpful? Give feedback.
All reactions