When I create a link to an object and then add Chinese characters before the linked text, the underline of the link is incorrectly shifted to the left.
It appears as though the underline’s starting position is fixed and does not adjust for the newly added characters. While the visual underline is misplaced, the link itself remains functionally correct and points to the right object.
Furthermore, if I delete the preceding Chinese characters, the underline does not return to its correct position but stays in the wrong, shifted location.
How To Reproduce It
Navigate to any page in Anytype.
Type a sentence, for example, “This is a link to Test.”
Select any words like “Test” and use the link command to turn it into a link pointing to any other object. At this point, the underline should correctly appear under “Test”.
Place the cursor before the linked text, “Test”.
Type any Chinese characters, for example, “测试”.
Image or Video
The Expected Behavior
The underline for a link should always stay directly and exclusively under the text that constitutes the link
Device
ROG Zephyrus G16
OS
Windows 11
Anytype Version
0.47.2
Network Mode
AnySync
Technical Information
OS version: win32 x64 10.0.26100
App version: 0.47.2
Build number: build on 2025-06-17 17:36:49 +0000 UTC at #38a0192d3ea05ffe8aceed0ba6f06c461c681186
Library version: v0.41.0
Anytype Identity: A8GnWbFf93jy9cCKmv9x93camzT7zZwwtqVSFq7TJNhMhfqe
Analytics ID: 560e3ed8-ebb9-4b0c-8f31-a65b2d69f002
Device ID: 12D3KooWFuvnJCTpdSjHfYanoJCMeKvhJMXfPwxX6yAm6ePSVtoE
Ethereum Address: 0xa0706E7E1D3dF0c2EC372bf2cE88fa5b5616Db9a
I just found:
This issue is not limited to Links. The same behavior occurs with other formatting options, including Underline, Italic, Strikethrough, Bold, and Code.
If you use “paste as link” feature for plain text written in Chinese and type something new (again, in Chinese) in front of the link created, the underlined part wouldn’t shift with the original text it was linked to. Instead, it stays in the same position on the screen and link to other part of the note.
When using copy and paste it’s normal, only happens when user type it.
This doesn’t happen in English but seems to happen to Japanese kana as well (not sure if it’s related to all CJK characters).
How To Reproduce It
Please see the video.
Image or Video
The Expected Behavior
The underlined part should move with the linked text as user type new things in front of the linked text.
Device
Home-built computer
OS
Windows 10 Pro 22H2
Anytype Version
0.47.5
Network Mode
AnySync
Technical Information
OS version: win32 x64 10.0.19045
App version: 0.47.5
Build number: build on 2025-06-27 13:25:58 +0000 UTC at #fcd0f274451d6fd888761f5a67e2aabfb4978335
Library version: v0.41.2
Anytype Identity: AAqr3La83dt9X97U321cdRFj2BGtRYYpLxY3uarioG455LHA
Analytics ID: 695ac646-85b5-4dab-a984-030364675af6
Device ID: 12D3KooWJ1SXfyG3ZYhQHoCCBEeqYAh6tik1vDLeGcMtiBMyZkFX
Ethereum Address: 0xE184127008508f4D51a3eeE9Fe71f5Da17E67533
Oops… Yes, it is.
I didn’t find this post when I used “link shift” as keywords.
I’ll do a more thorough check for existing bug reports next time… Sorry.