Skip to content

Outline jumps to embedded heading block instead of actual heading block #8817

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
3 tasks done
zenghao-stat opened this issue Jul 25, 2023 · 0 comments
Closed
3 tasks done
Assignees
Labels
Milestone

Comments

@zenghao-stat
Copy link

zenghao-stat commented Jul 25, 2023

如果嵌入块查询了当前文档的标题块,点击该文档大纲对应标题,会定位到嵌入块而非标题实际位置

Is there an existing issue for this?

  • I have searched the existing issues

Can the issue be reproduced with the default theme (daylight/midnight)?

  • I was able to reproduce the issue with the default theme

Could the issue be due to extensions?

  • I've ruled out the possibility that the extension is causing the problem.

Describe the problem

具体地说,当嵌入块查询了当前文档的标题块,比如 ## test 11,我在大纲中点击该标题,会先跳转到文档中 ## test 11的位置,然后瞬间再跳转到嵌入块位置。

Expected result

解决这一问题,即点击大纲的标题,会跳转到对应位置,而非嵌入块中的标题。

Screenshot or screen recording presentation

No response

Version environment

- Version: 2.9.6
- Operating System: Mac OS 13.3.1 (a) (22E772610a)
- Browser (if used):

Log file

 /  /\        ___           ___        /__/\         /  /\         /__/\
/  /:/_      /  /\         /__/|       \  \:\       /  /::\        \  \:\

/ /:/ /\ / /:/ | |:| \ :\ / /:/:\ \ :
/ /:/ /::\ //::\ | |:| ___ \ :\ / /:/~/::\ __:
//:/ /:/:\ _/:_ ||:| /
/\ __:\ /
/:/ /:/:\ /
/::::::::
\ :/:/~/:/ \ :/\ /
/::::\ \ :\ / /:/ \ :/:// \ :~~/
\ ::/ /:/ _::/ ~:\ \ :\ /:/ \ ::/ \ :\ ~~~
_
/ /:/ /
/:/ \ :\ \ :/:/ \ :\ \ :
/
_/:/ _/ _/ \ ::/ \ :\ \ :
_/ _/ _/ _/
I 2023/07/25 19:52:26 runtime.go:74: kernel is booting:
* ver [2.9.6]
* arch [amd64]
* os [darwin]
* pid [96087]
* runtime mode [prod]
* working directory [/Applications/SiYuan.app/Contents/Resources]
* read only [false]
* container [std]
* database [ver=20220501]
* workspace directory [/Users/zenghao/SiYuan]
I 2023/07/25 19:52:26 conf.go:232: upgraded from version [2.9.5] to [2.9.6]
I 2023/07/25 19:52:26 conf.go:362: OpenAI API enabled
baseURL=https://api.openai.com/v1
timeout=15s
proxy=
model=gpt-3.5-turbo
maxTokens=0
I 2023/07/25 19:52:26 conf.go:392: user has disabled [Google Analytics]
I 2023/07/25 19:52:26 runtime.go:128: use network proxy [system]
I 2023/07/25 19:52:26 serve.go:114: kernel [pid=96087] http server [0.0.0.0:53240] is booting
I 2023/07/25 19:52:26 pandoc.go:115: custom pandoc [ver=2.12, bin=/Users/zenghao/opt/anaconda3/bin/pandoc]
I 2023/07/25 19:52:27 serve.go:127: reverse proxy server [0.0.0.0:6806] is booting
I 2023/07/25 19:52:30 sync.go:688: sync websocket connected
I 2023/07/25 19:52:30 sync.go:733: sync websocket message: &{0 map[cmd:kernels kernels:[map[hostname:Foxs-MBP.local id:n8a4sez os:darwin repo:main ver:2.9.6]]]}
I 2023/07/25 19:52:33 sync.go:140: sync before boot
I 2023/07/25 19:52:35 repository.go:1141: boot get sync cloud files elapsed [2.43s]
I 2023/07/25 19:52:35 blocktree.go:446: read block tree [9.0 MB] to [/Users/zenghao/SiYuan/temp/blocktree], elapsed [0.05s]
I 2023/07/25 19:52:35 conf.go:710: database size [200 MB], tree/block count [881/30315]
I 2023/07/25 19:52:35 working.go:153: kernel booted
I 2023/07/25 19:52:36 box.go:79: auto stat [trees=881, blocks=30315, dataSize=477 MB, assetsSize=386 MB]
I 2023/07/25 19:52:36 disk.go:33: disk usage [total=494 GB, used=457 GB, free=37 GB]
I 2023/07/25 19:56:29 repository.go:1249: synced data repo [kernel=n8a4sez, provider=0, ufc=13, dfc=2, ucc=2, dcc=0, ub=88 kB, db=126 kB] in [10.83s]
I 2023/07/25 20:04:40 repository.go:1249: synced data repo [kernel=n8a4sez, provider=0, ufc=0, dfc=1, ucc=0, dcc=0, ub=0 B, db=87 kB] in [8.77s]
I 2023/07/25 20:06:35 repository.go:1249: synced data repo [kernel=n8a4sez, provider=0, ufc=0, dfc=1, ucc=0, dcc=0, ub=0 B, db=87 kB] in [7.32s]
siyuan.log

More information

No response

@88250 88250 changed the title 如果嵌入块查询了当前文档的标题块,点击该文档大纲对应标题,会定位到嵌入块而非标题实际位置 Outline jumps to embedded heading block instead of actual heading block Jul 27, 2023
@88250 88250 added the Bug label Jul 27, 2023
@88250 88250 added this to the 2.9.8 milestone Jul 27, 2023
Vanessa219 added a commit that referenced this issue Jul 27, 2023

Verified

This commit was signed with the committer’s verified signature.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants