Middle-clicking empty space after a list item places the cursor after its link instead of at the end of the line

Steps to reproduce

  1. Open the Sandbox vault and create a note.
  2. Paste the following Markdown:
- [OpenAI Hooks](https://developers.openai.com/codex/hooks).
- [OpenAI App-server](https://developers.openai.com/codex/app-server).?
  1. Switch to Live Preview and place the cursor on another line so the links are rendered.
  2. Left-click the empty space to the right of a list item, after all of its text. The cursor is placed at the end of the line.
  3. Move the cursor away again, then middle-click the same empty space. Compare the cursor position with step 4.

图片

Did you read and follow the Troubleshooting Guide?

Reproduced in the Sandbox vault. Further environment details are pending.

Expected result

Middle-clicking the empty space after a list item should place the cursor after the last character of the entire line, just as left-clicking does, while allowing multiple cursors. Text after the link should be included when determining the end of the line.

Actual result

The cursor jumps to a position immediately after the link and the link expands to show its Markdown syntax. This happens even when other content follows the link. For example, the trailing . or .? in the sample is ignored when positioning the cursor.

Environment

  • Reproduced in the Sandbox vault.