@NeatNit commented on this pull request.


> +        "dl",
+        # "dd", "dt", # child - since it's similar to a list, it has the same 
behavior as a list
+
+        "math" # don't know how this ends up, but dir="auto" is probably 
correct
+      ].each do |name|
+        define_method :"convert_#{name}" do |el, indent|
+          attr_bak = el.attr.dup # can't avoid mutating the attr hash, so make 
a backup
+          el.attr["dir"] = "auto" unless el.attr.key?("dir") # if by some 
miracle dir is already defined, don't override it
+          ret = super(el, indent)
+          el.attr.replace(attr_bak) # restore backup
+          ret
+        end
+      end
+
+      # only add dir="auto" to bare links
+      def convert_a(el, indent)

Yes.

טקסט `func(arg, 1235, "א")` טקסט

the codespand should render as: `func(arg, 1235, "א")`

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

Message ID: 
<openstreetmap/openstreetmap-website/pull/5840/review/2719784...@github.com>
_______________________________________________
rails-dev mailing list
rails-dev@openstreetmap.org
https://lists.openstreetmap.org/listinfo/rails-dev

Reply via email to