macOS Tibetan Wylie input duplicates stacked consonant in editor

Steps to reproduce

  1. On macOS, add the keyboard Tibetan - Wylie in System Settings → Keyboard → Input Sources.

  2. In Obsidian, open the Sandbox vault.

  3. Make sure Restricted mode is on and use the default theme.

  4. Switch your input source to Tibetan - Wylie.

  5. In a new note, type these exact keys:

    • sngon

    • snying

  6. Open mac TextEdit and type the same there, and see it’s correct

Expected result

Obsidian should produce:

  • སྔོན་

  • སྙིང

Actual result

Obsidian produces:

  • སྔྔན་

  • སྙྙང་

Additional information

This reproduces on macOS with the built-in Tibetan - Wylie keyboard, and the same input works correctly in TextEdit and Microsoft OneNote on the same machine, so this appears to be an Obsidian editor / IME composition issue rather than a macOS keyboard issue.

Obsidian version - Version 1.12.7 (Installer 1.12.4)

MacOS - 26.4.1

Please let me know if you need any more help to resolve this bug.

Related Past posts

This post from 2021 from the forum - “typing-in-tibetan-slightly-broken/16604”. I can post links so you can search for it.

  • Does happen in source mode?
  • Using Chrome (not safari), does it happen in gmail editor?
  • Using Chrome (not safari), open this page and try there. Does it work?
  • Does it happen in source mode?

Yes

  • Using chrome (not safari), does it happen in gmail editor?

No, it works perfectly in gmail editor

  • Using Chrome (not safari), open this page and try there. Does it work?

Yes, same wrong behavior

@WhiteNoise Do you need anything more from my side? Did you identify where is the bug?

Thank you!

does it happen in Safari on that page?

I was about to suggest you open an upstream bug report to codemirror, but I see you already did it.

@WhiteNoise It’s fixed in the upstream repo! I verified the fix resolves the issue.

What are the next steps to resolve it in Obsidian? Hopefully now it will be simple.

It’s actually a matter of adding one tag. See fix in - codemirror/view/commit/097aba8a8956ebd174698e5701bf359f93f43c43

See the issue you linked, it was resolved there.

(I am not adding links because I lack permission to do so)

Thank you, I was following the upstream report. At some point, we will do a a refresh of the dependencies and update codemirror too. There’s no ETA for that. It may take months.

Thank you :folded_hands:

Is it possible to request it will take less then months? If possible it will be very helpful.

A bit more on why it’s needed - This issue makes using Obsidian for Tibetan quite unbearable, as it occurs every other sentence or so, and breaks the flow of typing, requiring manual fix. I am currently evaluating using obsidian as a basis editor for creating some Tibetan language tools - spell check (which doesn’t exist for tibetan!), ai integration, OCR and so on. I have some POCs on them. But if typing in Tibetan is quite a pain, creating such tools is kind of pointless.

I highly appreciate your consideration :folded_hands: