The GitHub text editor includes automatic detection for RTL and LTR text. Can we implement a similar feature? https://github.com/user-attachments/assets/b36d8575-a55e-41ac-892f-51cfa88a6e02