Skip to content

改进导入 Markdown 文件时解析 HTML 块 #7137

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
2 tasks done
aGolduck opened this issue Jan 20, 2023 · 0 comments
Closed
2 tasks done

改进导入 Markdown 文件时解析 HTML 块 #7137

aGolduck opened this issue Jan 20, 2023 · 0 comments
Assignees
Milestone

Comments

@aGolduck
Copy link

aGolduck commented Jan 20, 2023

该问题是否已经被报告过了? Is there an existing issue for this?

  • 我已经搜索了 Issues,没有发现类似问题
    I have searched the existing issues

该问题是否能够在默认主题(daylight/midnight)下重现? Can the issue be reproduced with the default theme (daylight/midnight)?

  • 我能够在默认主题下重现该问题
    I was able to reproduce the issue with the default theme

描述问题 Describe the problem

导入 markdown 文件,文件包含不存在 img 路径,点击修改路径后弹窗状态异常

期待的结果 Expected result

路径正确修改完成,软件正常运行

截屏或者录屏演示 Screenshot or screen recording presentation

Xnip2023-01-20_13-00-12
Xnip2023-01-20_13-00-33

Xnip2023-01-20_12-43-59

版本环境 Version environment

- Version: 2.7.0
- Operating System: macos 12.6.2
- Browser (if used):

日志文件 Log file

I 2023/01/20 12:53:51 conf.go:395: exiting kernel [force=false, execInstallPkg=0]
I 2023/01/20 12:53:51 sync.go:158: sync before exit
I 2023/01/20 12:53:52 repository.go:922: synced data repo [provider=0, ufc=0, dfc=1, ucc=0, dcc=0, ub=0 B, db=812 kB] in [0.82s]
I 2023/01/20 12:53:52 database.go:1026: closed database
I 2023/01/20 12:53:52 conf.go:731: cleared workspace temp
I 2023/01/20 12:53:53 conf.go:444: exited kernel
I 2023/01/20 12:53:59 working.go:119:
___ ___ ___ ___
/ /\ ___ ___ //\ / /\ //
/ /:/_ / /\ //| \ :\ / /::\ \ :
/ /:/ /\ / /:/ | |:| \ :\ / /:/:\ \ :
/ /:/ /::\ /
/::\ | |:| ___ \ :\ / /://::\ __:
//:/ /:/:\ _/:_ ||:| /
/\ __:\ /
/:/ /:/:\ /_/::::::::
\ :/:/
/:/ \ :/\ //::::\ \ :\ / /:/ \ :/:// \ :~~/
\ ::/ /:/ _::/ ~:\ \ :\ /:/ \ ::/ \ :\ ~~~
_
/ /:/ //:/ \ :\ \ :/:/ \ :\ \ :
/
/:/ _/ _/ \ ::/ \ :\ \ :
_/ _/ _/ _/
I 2023/01/20 12:53:59 runtime.go:46: kernel is booting:
* ver [2.7.0]
* arch [amd64]
* pid [19032]
* runtime mode [prod]
* working directory [/Applications/SiYuan.app/Contents/Resources]
* read only [false]
* container [std]
* database [ver=20220501]
* workspace directory [/Users/w/Desktop/SiYuan]
I 2023/01/20 12:53:59 runtime.go:91: use network proxy [system]
I 2023/01/20 12:53:59 serve.go:111: kernel [pid=19032] http server [127.0.0.1:52061] is booting
I 2023/01/20 12:53:59 sync.go:81: sync before boot
I 2023/01/20 12:53:59 working.go:396: built-in pandoc [ver=2.19.2, bin=/Users/w/Desktop/SiYuan/temp/pandoc/bin/pandoc]
I 2023/01/20 12:54:00 serve.go:124: reverse proxy server [127.0.0.1:6806] is booting
W 2023/01/20 12:54:06 repository.go:1106: index data repo before cloud sync elapsed [7311ms]
I 2023/01/20 12:54:07 repository.go:821: boot get sync cloud files elapsed [7.78s]
I 2023/01/20 12:54:08 conf.go:616: database size [1.9 GB], tree/block count [3272/476892]
I 2023/01/20 12:54:08 working.go:157: kernel booted
W 2023/01/20 12:54:09 transaction.go:1308: not found tree [20230115194324-5pysh8x] in database, reindex it
I 2023/01/20 12:54:23 queue.go:135: op tx [11349ms]
E 2023/01/20 12:54:29 transaction.go:873: load tree [id=] failed: block not found
I 2023/01/20 12:54:44 conf.go:395: exiting kernel [force=false, execInstallPkg=0]
I 2023/01/20 12:54:44 sync.go:158: sync before exit
I 2023/01/20 12:54:46 repository.go:922: synced data repo [provider=0, ufc=1, dfc=0, ucc=1, dcc=0, ub=420 kB, db=812 kB] in [2.34s]
I 2023/01/20 12:54:46 database.go:1026: closed database
I 2023/01/20 12:54:46 conf.go:731: cleared workspace temp
I 2023/01/20 12:54:47 conf.go:444: exited kernel

更多信息 More information

示例 markdown 文件
头像.md

@aGolduck aGolduck changed the title 请输入问题报告标题 Please enter the title of the bug report 导入 markdown 文件,文件包含不存在 img 路径,点击修改路径后弹窗状态异常 Jan 20, 2023
@88250 88250 changed the title 导入 markdown 文件,文件包含不存在 img 路径,点击修改路径后弹窗状态异常 改进导入 Markdown 文件时解析 HTML 块 Jan 22, 2023
@88250 88250 self-assigned this Jan 22, 2023
@88250 88250 added this to the 2.7.1 milestone Jan 22, 2023
88250 added a commit that referenced this issue Jan 24, 2023

Unverified

This user has not yet uploaded their public signing key.
@88250 88250 closed this as completed Jan 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants