- This is a test from obsidian uploaded to xlog.
- This is a test from the xlog editing page.
It was found that files from xlog cannot be further edited from obsidian.
In other words, the plugin currently (April 13, 2024) can only create new files and update files from obsidian, but cannot obtain and update results edited and published in the xlog editor.
Therefore, it is concluded that the obsidian-xlog plugin is currently only suitable for friends who edit in obsidian. If there is a need for multi-platform editing (editing in obsidian and then modifying in the xlog editor), you will need to wait for future updates. Friends who like to try it out can go to the obsidian market to search for xlog downloads, project address: https://github.com/Otto-J/sync-to-xlog
How to achieve coexistence of local and ipfs addresses?#
Image Hosting#
Using an image hosting service is the best way to store images locally and remotely at the same time. Implement image tracking and link replacement locally (i.e., the link uploaded to the remote is already an ipfs address and does not need further conversion.) The key is to mark the images with alt text.
- Check for updates to local images when uploading
- If there are updates, pass the images and md files normally
- If not, directly replace the local ipfs address.
- Check if the ipfs link has changed when downloading,
- If it has changed, update locally. And update the image hosting service
- If not, do not make any changes.
Using alt text for articles#
- Do not rely on image hosting, implement alt text modifications on your own plugin.
Paste the local path address on alt text. That is,![original alt text + separator + local address](local address)
in this way. - After uploading, the image will be
![local address](ipfs address)
and can be displayed. - During the download process, check if the local address image and the ipfs address image are the same
- If they are the same, swap the text
![original alt text + ipfs address](local address)
- If they are different, overwrite and store the new address
![original alt text + ipfs address](new local address)
- If they are the same, swap the text