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

#18 Embed images #21

Draft
wants to merge 12 commits into
base: main
Choose a base branch
from
Draft

#18 Embed images #21

wants to merge 12 commits into from

Conversation

KevinGDialpad
Copy link
Contributor

@KevinGDialpad KevinGDialpad commented Jun 4, 2022

Closes #18, #19

The idea is to attach the file to the wiki page. The tricky bit will be to figure out when to update it (what if you update an image but not the document(s) that use it?), but we can worry about that later. Having an initial version of the image is better than the current situation.

@KevinGDialpad KevinGDialpad marked this pull request as ready for review June 11, 2022 01:07
@KevinGDialpad
Copy link
Contributor Author

Ready for review! The reviewer will once again be next-week-Kevin, who will also create tickets for the TODOs and link them in the code, and make the 1.2 release.

@KevinGDialpad KevinGDialpad mentioned this pull request Jun 17, 2022
@KevinGDialpad
Copy link
Contributor Author

Just realized that I'd only tested this by adding images to existing pages. It doesn't work when adding a new document with an image, because the logic that adds attachments runs inside _replace_relative_links(), which happens before the wiki page is created.

@KevinGDialpad KevinGDialpad marked this pull request as draft October 7, 2022 16:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Embed images
1 participant