This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
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
Moving a note should update image links #151
Comments
That's why I would not use (sub) folders in my notes system but only tags and filenames to distinguish. To solve this issue a monitoring should be done when moving a file and I should be asked if I want to update the links. Some WIKI pages systems are checking relations when moving files. But I would not like that some auto update will change the notes not asking me. And there is another issue: when moving notes files outside GitJournal directly then no detection could happen and the links will be wrong anyway. So I would not like the developer to spent much energy on change detection, it is not possible to cover all cases :-) A possible way I see is to use Placeholders or variables. There is an similar issue in SchemaSpy with markdown comments in database documentation because the place of the generated file containing links to images can be on different places: Something like {RootFolder}/images/picture.png could solve the issue. But this would be a GitJounal specific solution. And the goal should be that the markdown notes are working not only inside GitJournal, but also outside. I don't know if there are any markdown extensions allowing to define this {RootFolder} as variable. But what I learned, there are so many different markdown versions and the are even not compatible on such "simple" things like lists: yzhang-gh/vscode-markdown#680 (comment) That's why I try:
I try to use markdown elements which are supported by different markdown dialects: My blog page uses one dialect to render (https://github.com/michelf/php-markdown), GitHub and AzureDevOps using other dialects, ... |
Trying to automate fixing links in a collection of markdown files is always more of a challenge than one might think. On the one side, most people do not want to break things just by renaming or moving a file but otherwise one doesn't want to have own content automatically manipulated from scripts which always is a risk of unnoticed data loss. Because of this reason I would also be okay without the App trying to preserve correct links. OT: |
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
When you insert a picture on a note placed on a root folder, image are save on root with link like this:
./picture.png
.Whene you update note's folder, picture not follow new folder and link is not updated so the link become broken.
The text was updated successfully, but these errors were encountered: