[openstreetmap/openstreetmap-website] Add dir="auto" to Markdown content for bidi (PR #5840)
Nitai Sasson
notifications at github.com
Sun Mar 23 20:34:21 UTC 2025
@NeatNit commented on this pull request.
> @@ -96,7 +136,7 @@ def to_text
class Markdown < Base
def to_html
- linkify(sanitize(document.to_html), :all)
+ linkify(sanitize(document.to_html_bidi), :all)
https://kramdown.gettalong.org/rdoc/Kramdown/Parser/Base.html
> Implementing a new parser is rather easy: just derive a new class from this class and put it in the [Kramdown::Parser](https://kramdown.gettalong.org/rdoc/Kramdown/Parser.html) module – the latter is needed so that the auto-detection of the new parser works correctly.
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/5840#discussion_r2009231147
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/5840/review/2708758149 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250323/d32e5708/attachment.htm>
More information about the rails-dev
mailing list