[openstreetmap/openstreetmap-website] Auto-linkify markdown text (Issue #7122)

Pablo Brasero notifications at github.com
Tue Jun 2 09:55:43 UTC 2026


pablobm created an issue (openstreetmap/openstreetmap-website#7122)

In https://github.com/openstreetmap/openstreetmap-website/pull/6518 (and further in https://github.com/openstreetmap/openstreetmap-website/pull/6597) we implemented "linkification" in plain text: strings like `node/123456` will automatically turn into links to features/etc in user comments.

Since this was only implemented for plain text, it only works in notes, note comments, changeset descriptions, and changeset comments, if I'm not missing anything. Text written in Markdown (diary entries, diary comments, direct messages, user profiles, etc) is not linkified.

So let's make this work in Markdown!

The problem is that we have to be careful with which specific text to linkify. For example we don't want to linkify inside code blocks (text rendered within `<code>` and `<pre>` elements), links (rendered with `<a>`)... and I'm not sure if others?

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/7122
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/issues/7122 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20260602/b362f702/attachment.htm>


More information about the rails-dev mailing list