Exporting of media
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": "
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 formatted/. You'll need the silver searcher.
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.