<h3 dir="auto">Description</h3>
<ol dir="auto">
<li>Derive a kramdown converter subclass that adds <code class="notranslate">dir="auto"</code> to HTML elements where appropriate.</li>
<li>Call this new converter instead of the default HTML converter</li>
<li>Add <code class="notranslate">dir="auto"</code> to changeset comment tag (unrelated, should have been part of <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="2939421862" data-permission-text="Title is private" data-url="https://github.com/openstreetmap/openstreetmap-website/issues/5835" data-hovercard-type="pull_request" data-hovercard-url="/openstreetmap/openstreetmap-website/pull/5835/hovercard" href="https://github.com/openstreetmap/openstreetmap-website/pull/5835">#5835</a>)</li>
</ol>
<p dir="auto">This solves the last (to my knowledge) of the most prominent user-generated content bidi issues of <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1108345241" data-permission-text="Title is private" data-url="https://github.com/openstreetmap/openstreetmap-website/issues/3428" data-hovercard-type="issue" data-hovercard-url="/openstreetmap/openstreetmap-website/issues/3428/hovercard" href="https://github.com/openstreetmap/openstreetmap-website/issues/3428">#3428</a>, that being user diaries. Other less prominent issues are handled in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1108455871" data-permission-text="Title is private" data-url="https://github.com/openstreetmap/openstreetmap-website/issues/3429" data-hovercard-type="pull_request" data-hovercard-url="/openstreetmap/openstreetmap-website/pull/3429/hovercard" href="https://github.com/openstreetmap/openstreetmap-website/pull/3429">#3429</a>, which best I can tell does not overlap with this PR.</p>
<h3 dir="auto">How has this been tested?</h3>
<p dir="auto">The kramdown subclass was tested here: <a href="https://codeberg.org/NeatNit/kramdown-bidi/src/branch/main/code.rb" rel="nofollow">https://codeberg.org/NeatNit/kramdown-bidi/src/branch/main/code.rb</a></p>
<p dir="auto">Its integration into the OpenStreetMap website <strong>has not been tested.</strong></p>
<p dir="auto">I don't expect you'd like the amount of comments in that converter, or that github issue comment link in the source code. In my opinion it's needed to understand the choices I've made. If you prefer, I can remove some of the comments, just tell me which ones.</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/5840'>https://github.com/openstreetmap/openstreetmap-website/pull/5840</a></p>

<h4>Commit Summary</h4>
<ul>
  <li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/5840/commits/9ac3a193060f604435544f83567d6625e516b9ca" class="commit-link">9ac3a19</a>  add dir="auto" to changeset comment</li>
  <li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/5840/commits/3fd1fd04a82f9fb8b780b7b7f4f717f018da9023" class="commit-link">3fd1fd0</a>  make markdown bidirectional with dir="auto"</li>
</ul>

<h4 style="display: inline-block">File Changes </h4> <p style="display: inline-block">(<a href="https://github.com/openstreetmap/openstreetmap-website/pull/5840/files">2 files</a>)</p>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5840/files#diff-9a5f2cb48e3a30fd0197d016bd900f26d7183d6714f3a747613c9cbe4a9c8f9d">app/views/changesets/show.html.erb</a>
    (2)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5840/files#diff-6854f233485e4f1bf82ed21283e3637f9114d7c5431b80926ba2f5657b54e9fb">lib/rich_text.rb</a>
    (42)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/5840.patch'>https://github.com/openstreetmap/openstreetmap-website/pull/5840.patch</a></li>
  <li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/5840.diff'>https://github.com/openstreetmap/openstreetmap-website/pull/5840.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/5840">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLORAZUCDQWRBM6LLBL2V4ALBAVCNFSM6AAAAABZTMJBMKVHI2DSMVQWIX3LMV43ASLTON2WKOZSHE2DCNBVGA2TGMY">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLIJAK5HFHJZYKVK5E32V4ALBA5CNFSM6AAAAABZTMJBMKWGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHK6UXZEU.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/5840</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/5840",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/5840",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>