WIP: Fix broken images in MD and PDF books #85

Draft
fatmaebrahim wants to merge 7 commits from development_fix_broken_images_in_pdf_and_md into development
Member

Description:

This PR include a fix for broken images in md preview and pdf books
It includes the following changes:

  • added rewrite_image_urls function to handle md
  • added handle_img_name function to handle pdf

Changes:

  • md preview fixed:

image

  • pdf books fixed:

image

### Description: This PR include a fix for broken images in md preview and pdf books It includes the following changes: - added rewrite_image_urls function to handle md - added handle_img_name function to handle pdf ### Changes: - md preview fixed: ![image](/attachments/7fb71225-681b-4d3b-8cdc-9770d45b89bf) - pdf books fixed: ![image](/attachments/d5689371-e8ee-470d-8ea7-b31d2a2cf6ae)
1.5 MiB
892 KiB
fix: added rewrite_image_urls function to handle md and handle_img_name function to handle pdf
Some checks failed
Test / test (pull_request) Failing after 35s
Test / integration (pull_request) Has been skipped
6f1ffeac48
added comment
Some checks failed
Test / test (pull_request) Failing after 24s
Test / integration (pull_request) Has been skipped
98b38686c2
ci: Add token to checkout action
Some checks failed
Test / test (pull_request) Has been cancelled
Test / integration (pull_request) Has been cancelled
3f9b7ded2e
- Configure checkout with FORGEJO_TOKEN
ci: Use custom git clone for repository checkout
Some checks failed
Test / test (pull_request) Failing after 1s
Test / integration (pull_request) Has been skipped
fc64d4e654
- Replace `actions/checkout@v4`
- Implement custom `git clone` command
- Add current directory to Git safe directories
- Determine branch from `GITHUB_HEAD_REF` or `GITHUB_REF_NAME`
- Clone repository from `forge.ourworld.tf`
fix: cargo fmt
Some checks failed
Test / test (pull_request) Failing after 15s
Test / integration (pull_request) Has been skipped
a17f6d5ab1
version downgrade
Some checks failed
Test / test (pull_request) Failing after 2m31s
Test / integration (pull_request) Has been skipped
164b866b1c
fatmaebrahim force-pushed development_fix_broken_images_in_pdf_and_md from 164b866b1c
Some checks failed
Test / test (pull_request) Failing after 2m31s
Test / integration (pull_request) Has been skipped
to a17f6d5ab1
Some checks failed
Test / test (pull_request) Failing after 15s
Test / integration (pull_request) Has been skipped
2026-03-18 12:35:08 +00:00
Compare
added toolchain to fix rustc version mismatch
Some checks failed
Test / test (pull_request) Has been cancelled
Test / integration (pull_request) Has been cancelled
f526724669
removed --skip-discover option
Some checks failed
Test / test (pull_request) Successful in 5m57s
Test / integration (pull_request) Has been cancelled
c870736df1
fatmaebrahim force-pushed development_fix_broken_images_in_pdf_and_md from c870736df1
Some checks failed
Test / test (pull_request) Successful in 5m57s
Test / integration (pull_request) Has been cancelled
to f526724669
Some checks failed
Test / test (pull_request) Has been cancelled
Test / integration (pull_request) Has been cancelled
2026-03-18 13:04:28 +00:00
Compare
removed --skip-discover option
All checks were successful
Test / test (pull_request) Successful in 6m39s
Test / integration (pull_request) Successful in 4m6s
30175066bb
All checks were successful
Test / test (pull_request) Successful in 6m39s
Test / integration (pull_request) Successful in 4m6s
This pull request is marked as a work in progress.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin development_fix_broken_images_in_pdf_and_md:development_fix_broken_images_in_pdf_and_md
git switch development_fix_broken_images_in_pdf_and_md

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch development
git merge --no-ff development_fix_broken_images_in_pdf_and_md
git switch development_fix_broken_images_in_pdf_and_md
git rebase development
git switch development
git merge --ff-only development_fix_broken_images_in_pdf_and_md
git switch development_fix_broken_images_in_pdf_and_md
git rebase development
git switch development
git merge --no-ff development_fix_broken_images_in_pdf_and_md
git switch development
git merge --squash development_fix_broken_images_in_pdf_and_md
git switch development
git merge --ff-only development_fix_broken_images_in_pdf_and_md
git switch development
git merge development_fix_broken_images_in_pdf_and_md
git push origin development
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
lhumina_code/hero_books!85
No description provided.