Skip to content
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

fix(vscodePlugin): relative path img #972

Merged
merged 1 commit into from
Nov 12, 2024

Conversation

RSS1102
Copy link
Collaborator

@RSS1102 RSS1102 commented Nov 11, 2024

在之前,会获取工作区路径+markdown中文本的相对路径进行拼接,当vscode的打开的工作区不同的时候就会导致图片加载失败。
011748bb5dc7467f3ae5eaaec81ed42

现在获取当前活动的markdown文件路径,通过计算相对于这个markdown文件的相对路径获取最终的图片绝对路径进行加载。
5ef15115250a61095fa0aa90eba2ddcf

@sunsonliu sunsonliu merged commit 67c5ae5 into Tencent:dev Nov 12, 2024
4 checks passed
@RSS1102 RSS1102 deleted the vscode-plugin/fix/picture branch November 12, 2024 11:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants