[openstreetmap/openstreetmap-website] Linkify breaks Overpass QL source code blocks (Issue #6643)

mmd notifications at github.com
Mon Dec 22 19:30:50 UTC 2025


mmd-osm created an issue (openstreetmap/openstreetmap-website#6643)

### URL

https://www.openstreetmap.org/user/bmaczero/diary/407962

### How to reproduce the issue?

A user has posted an Overpass QL query in  https://www.openstreetmap.org/user/bmaczero/diary/407962 as:

```
{{geocodeArea:Colorado}}->.searchArea;
way["leisure"="pitch"]["sport"="tennis"](area.searchArea);
foreach(way._( if:count_members()==5); out geom;);
```

Linkify rules has turned the query into this code, which is no longer valid.

```
{{geocodeArea:Colorado}}->.searchArea;
way["leisure"="pitch"]["sport"="tennis"](area.searchArea);
foreach https://wiki.openstreetmap.org/wiki/Tag:(way._(if:count_members()==5); out geom;);
```

Linkify rules should not be applied to source code blocks. They're supposed to be left as is.

### Screenshot(s) or anything else?

_No response_

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

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


More information about the rails-dev mailing list