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

./ is relative, not an alias for src #2559

Open
arlowhite opened this issue Aug 21, 2024 · 1 comment
Open

./ is relative, not an alias for src #2559

arlowhite opened this issue Aug 21, 2024 · 1 comment

Comments

@arlowhite
Copy link

The Showcase Images section states:

Alternatively, use ./ to begin a path relative to the src of the documents, e.g., ./assets/logo.png.

However, this is not actually a feature.

./assets/logo.png and assets/logo.png both work in this file because it's within docs/src/

But if you try ./ in a subdirectory's markdown file, such as docs/src/man/doctests.md

![Enter a descriptive caption for the image](./assets/logo.png)

You get this error:

┌ Error: invalid local link/image: file does not exist in src\man\doctests.md
│   link =
│    @ast MarkdownAST.Image("./assets/logo.png", "") do
│      MarkdownAST.Text("Enter a descriptive caption for the image")
│    end
@arlowhite
Copy link
Author

arlowhite commented Aug 21, 2024

Also, I think it would be a bit weird if ./ were special since it is a typical relative path. Maybe better to use / or ~?

  • /assets/logo.png
  • ~/assets/logo.png

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