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

Bangle should use relative paths (not absolute) when referencing assets #193

Open
patoski opened this issue Nov 21, 2021 · 2 comments
Open
Labels

Comments

@patoski
Copy link

patoski commented Nov 21, 2021

When Bangle references an asset (an image for example), it uses absolute paths with respect to the workspace (e.g. ![](/assets/images/image.png]). This breaks other markdown tools' ability to interpret paths to images. The way bangle creates and references assets, those links are broken, thereby preventing other tools from interoperating with Bangle.

To resolve this issue, Bangle should use relative paths when referencing images and other assets. For example, a file in a subdirectory one level deep from the root of the workspace (e.g subdirectory1/example.md) that references an image, should use the relative directory path like so ![](../assets/images/image.png] (note the two periods before the path statement).

@kepta kepta transferred this issue from bangle-io/bangle-editor Nov 21, 2021
@kepta
Copy link
Contributor

kepta commented Nov 21, 2021

Thanks for opening this!

The problem with using relative path is that it makes moving files around harder. I will look into providing a setting to allow relative assets paths to address this.

@kusum-68 kusum-68 transferred this issue from another repository Dec 12, 2021
@yaman-694
Copy link

Is this issue open ?

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