-
Notifications
You must be signed in to change notification settings - Fork 132
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
Exporting of media #33
Comments
@MatthieuBizien would you like help with this? |
Hi @benwf! I agree that feature would be nice, but I will not be able to work on it in the short time. PR welcome 😀 |
I'd love to pass the torch to @gunar if he's still interested ;) |
Sure I'll take a stab at it |
I hadn't realized this codebase is written in Python. It'd take too long for me as I'm not used to Python tooling. For concern of losing my images, I've written this short bash script to download images from the generated markdown files. It doesn't retroactively update the markdown files but at least you've got your images with you. Anyway, this might be an interim solution for whoever comes to this GH issue: #!/usr/bin/env sh
ag -o "!\[.*\]\((.*)\)" | ag -o "\([^)]*" | cut -c 2- \
| parallel -j 8 --halt never wget -P images --continue {} Run it inside Anyway, this is a hack and we'd love it if someone could contribute to this feature. |
Solution: I've built a thing called markdown-backup to solve this problem. It downloads the images linked inside markdown files, and rewrites the link to point to the new local files. There are instructions on how to use it with roam-to-git. Feedback welcome. |
It would probably very useful if images and PDF stored on Roam would be exported as well.
Via this thread (closed forum, but props where they are due), they look like an "easy" regex to find:
"string": "![](https://firebasestorage.googleapis.com/[..]/o/imgs%2Fapp%2FMY-GRAPH%2F-[IMAGEID].png?[AUTH_DELETED]
Alas, I don't know how complicated it would actually be to have the attachments downloaded just because they're easy to find.
The text was updated successfully, but these errors were encountered: