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

Closed
fatmaebrahim wants to merge 0 commits from development_fix_broken_images_in_pdf_and_md into development
Member

Issue: #83

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

### Issue: https://forge.ourworld.tf/lhumina_code/hero_books/issues/83 ### 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
Merge branch 'development' into development_fix_broken_images_in_pdf_and_md
Some checks failed
Test / test (pull_request) Failing after 19s
Test / integration (pull_request) Has been skipped
Test / test (push) Failing after 17s
Test / integration (push) Has been skipped
Build Linux / build-linux (linux-amd64, x86_64-unknown-linux-gnu) (push) Failing after 4m4s
2c507b9339
despiegk closed this pull request 2026-03-20 08:59:41 +00:00
Some checks failed
Test / test (pull_request) Failing after 19s
Test / integration (pull_request) Has been skipped
Test / test (push) Failing after 17s
Test / integration (push) Has been skipped
Build Linux / build-linux (linux-amd64, x86_64-unknown-linux-gnu) (push) Failing after 4m4s

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
3 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.