mathquill / mathquill

Easily type math in your webapp
http://mathquill.com
Mozilla Public License 2.0
2.61k stars 687 forks source link

UTF-16 surrogate pairs rendered separately when cursor is placed between them #1042

Open trnavac opened 5 months ago

trnavac commented 5 months ago

Since those characters stored in javascript string have length 2, I suppose they are parsed as 2 separate characters. They are rendered fine until the cursor is placed between them.

image image

HTML looks like this: image But it should probably look like this: image