<p dir="auto">It's possible to add images to markdown rich text without the <code class="notranslate">![]()</code> syntax, by using html <code class="notranslate"><img ...></code>. Such images are not detected by <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="2338550017" data-permission-text="Title is private" data-url="https://github.com/openstreetmap/openstreetmap-website/issues/4882" data-hovercard-type="pull_request" data-hovercard-url="/openstreetmap/openstreetmap-website/pull/4882/hovercard" href="https://github.com/openstreetmap/openstreetmap-website/pull/4882">#4882</a> because they have a different type in the kramdown parse tree. This PR enables detection of <code class="notranslate"><img ...></code>.</p>
<hr>
<h4>You can view, comment on, or merge this pull request online at:</h4>
<p> <a href='https://github.com/openstreetmap/openstreetmap-website/pull/5041'>https://github.com/openstreetmap/openstreetmap-website/pull/5041</a></p>
<h4>Commit Summary</h4>
<ul>
<li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/5041/commits/25aea657e280204f1083a72279a4fb5bd5b521e6" class="commit-link">25aea65</a> Detect <img> images in markdown rich text</li>
<li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/5041/commits/37edcb113a5dcbdc79e6e90b53f6f643c568c437" class="commit-link">37edcb1</a> Skip images with missing src</li>
</ul>
<h4 style="display: inline-block">File Changes </h4> <p style="display: inline-block">(<a href="https://github.com/openstreetmap/openstreetmap-website/pull/5041/files">2 files</a>)</p>
<ul>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/5041/files#diff-6854f233485e4f1bf82ed21283e3637f9114d7c5431b80926ba2f5657b54e9fb">lib/rich_text.rb</a>
(6)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/5041/files#diff-c1cefbd36a92f5d74850361751b9b01c7d326221cfa8c15c0c071008165de745">test/lib/rich_text_test.rb</a>
(35)
</li>
</ul>
<h4>Patch Links:</h4>
<ul>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/5041.patch'>https://github.com/openstreetmap/openstreetmap-website/pull/5041.patch</a></li>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/5041.diff'>https://github.com/openstreetmap/openstreetmap-website/pull/5041.diff</a></li>
</ul>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5041">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLJX52JKW75RLZ4FR3TZPO6X3AVCNFSM6AAAAABL453TZOVHI2DSMVQWIX3LMV43ASLTON2WKOZSGQ2DKNBVG4YDGMY">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLIQVTXACK7C32NZWHTZPO6X3A5CNFSM6AAAAABL453TZOWGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHJDQVWRE.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><openstreetmap/openstreetmap-website/pull/5041</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/openstreetmap-website/pull/5041",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/5041",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>