Zulip Chat Archive

Stream: mathlib4

Topic: Allowed characters in doc URLs


Violeta Hernández (Dec 09 2025 at 05:01):

I recently noticed that the URL in docs#LanderParkinSelfridgeConjecture was not formatted properly in the docs. That URL has commas, and docgen splits URLs at such characters. I opened #32556 to replace them with ASCII escapes, but got told that I should be discussed on Zulip.

Personally I do believe splitting at punctuation marks makes more sense than not (since otherwise writing https://example.com, would then lead to an incorrect link). Wonder what others think.

Kim Morrison (Dec 10 2025 at 22:06):

ASCII escapes sound good to me.

Anthony Wang (Dec 10 2025 at 23:57):

It seems slightly inelegant to have escape characters (technically it's URL encoding, not ASCII escapes), so maybe a more complicated solution could be to have docgen split on whitespace, and then trim punctuation from the end of links.

Eric Wieser (Dec 11 2025 at 02:41):

"doc-gen" here is just markdown


Last updated: Dec 20 2025 at 21:32 UTC