[openstreetmap/openstreetmap-website] Backquotes around tags in CS comments are included when auto-linking (Issue #6611)
Ltrlg
notifications at github.com
Thu Dec 11 11:29:16 UTC 2025
Ltrlg left a comment (openstreetmap/openstreetmap-website#6611)
Sorry, I meant “changeset discussion comment”, forgot that the term is used for both.
@tomhughes Convention is not syntax. Markdown is a (somewhat) formalized syntax that was first inspired by preexisting conventions for text-only writing and then influenced conventions in return. Granted, it might not be the most common convention, but I did use it in comments before and retroactively changing rendering to make it look bad seems wrong.
@hlfan Thanks! The set of characters used in common OSM keys is pretty limited¹, maybe that part should use a positive set instead of a negative one?
¹ Arguably even the values are limited, since this is linking to wiki pages and values with more unusual characters are probably not much documented. The proper thing to do imho would be to use the same logic as in tags tables to choose linking to full tag / key only / not at all, but this would be more work and your quick fix is a good step forward.
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/6611#issuecomment-3641484052
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/issues/6611/3641484052 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20251211/15a29f32/attachment.htm>
More information about the rails-dev
mailing list