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

Does typora-root-url only work on relative path links to images? #6022

Open
xiaolinggnb opened this issue Apr 10, 2024 · 0 comments
Open

Does typora-root-url only work on relative path links to images? #6022

xiaolinggnb opened this issue Apr 10, 2024 · 0 comments

Comments

@xiaolinggnb
Copy link

In my test, it is so.
I'd like to know if that's really all there is to it, or if there's something wrong with the way I'm implementing it.
Here's my test.
File path:

markdown.md path: C:\Users\HONOR\Desktop\test
testDir path: C:\Users\HONOR\Desktop\test\testDir
test.txt path: C:\Users\HONOR\Desktop\test\test.txt

content in markdown.md

---
typora-root-url: C:\Users\HONOR\Desktop
---

[directory](/test/testDir)

[file](test/test.txt)

![testPhoto](/test/testPhoto.png)

And the result as photo:
image

As the photo show, photo found in relative path successfully, but directory found failed, so as file.

So I'd like to know if that's really all there is to it, or if there's something wrong with the way I'm implementing it.

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

No branches or pull requests

1 participant