logseq / logseq/logseq

When clicking on unfocused line that contain markdown link the cursor position is in the middle of link instead of at the end of line

Open
#2,782 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

:type/enhancement editor format:markdown
Dominant language
Clojure
Stars
45k
Forks
2.8k
Avg merge
1d 22h
Merged PRs (30d)
105

Description

Describe the bug
When clicking on unfocused line that contain markdown link the cursor position is in the middle of link instead of at the end of line
To Reproduce

  • Creatae a line with markdown link
-  [Link](Address)
  • Click somewhere else
  • Click again on the line with link
  • Position of the cursor is in the middle of the link, inside [ ] brackets (cursor is represented by | )
- [Link|](Address)

Expected behavior

  • Position of the cursor is at the end of line
- [Link](Address)|

Desktop (please complete the following information):

  • OS: [e.g. iOS] MacOSBig Sur
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22] 0.3.7

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names no source file or test. Reproduce the markdown-link cursor behavior in the editor, then trace the click-position handling for an unfocused line; done means the cursor lands after the closing parenthesis as described.

Written by the indexing model from the issue text.

Assessment

Tech stack
clojure, markdown
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.