cqroot / joplin-outline

A markdown outline (TOC) sidebar plugin for Joplin.
MIT License
215 stars 16 forks source link

It does not jump to the target heading when Joplin is in viewer mode (Joplin 2.11.11) #82

Open joochlee opened 1 year ago

joochlee commented 1 year ago

Hi,

I found a weird bug. It does not jump to the target heading when Joplin is in the viewer mode. (It does not always fail. It usually works for top level heading, but it tends to fail as the heading level gets deeper.. <== I am not sure this is the correct condition under which the bug occurs..)

It works always ok when the Joplin is in the split mode or editor mode

cqroot commented 1 year ago

Hello, I tried it, and it can jump normally in editor mode, viewer mode, and split mode.

Please check whether it is because the title has reached the bottom of the note and cannot be displayed any further.

If not, can you provide me with a concise reproducible note.

joochlee commented 1 year ago

Hello, I tried it, and it can jump normally in editor mode, viewer mode, and split mode.

Please check whether it is because the title has reached the bottom of the note and cannot be displayed any further.

If not, can you provide me with a concise reproducible note.

Hi, I found concrete condition.

please test following code in Joplin 2.11.11. if a heading include _ and its length is too long it fails to jump to that heading.

In the below sample, please try two headings upcoming_deadlines_fjsdk_fjsdkfjsdk() and upcoming_deadline() in viewer mode. It can't jump to the first heading and can jump to the second heading.

I copied link of the first heading by right-clicking it : [matter TSG 102#upcoming_deadlines_fjsdk_fjsdkfjsdk()](:/423ca9814b5e4c58b939e53df6a76c08#upcomingdeadlinesfjsdk_fjsdkfjsdk)

two _ are missing in this example. It seems that this is the reason of this bug. I don't know why it works in split or editor mode... 😀

# 2023.07.25
## Matter TSG 102
### status & updates
#### upcoming_deadlines_fjsdk_fjsdkfjsdk()
#### upcoming_deadline()

### 0.9 readiness
- review of sdk / test plan readiness
<br>

## E2E TT

[matter TSG 102#upcoming_deadlines_fjsdk_fjsdkfjsdk()](:/423ca9814b5e4c58b939e53df6a76c08#upcomingdeadlinesfjsdk_fjsdkfjsdk)

<pre>

</pre>
fjksdfsd