Skip to content

Comments

fix: use pathlib.Path.as_uri() for base href in render_to_img#14

Merged
drmingdrmer merged 2 commits intomasterfrom
fix/asset-base-uses-file-concat
Feb 22, 2026
Merged

fix: use pathlib.Path.as_uri() for base href in render_to_img#14
drmingdrmer merged 2 commits intomasterfrom
fix/asset-base-uses-file-concat

Conversation

@drmingdrmer
Copy link
Contributor

Summary

Test plan

  • make test — all 14 tests pass
  • Verify render_to_img with asset_base produces correct file URIs

drmingdrmer and others added 2 commits February 22, 2026 19:09
Replace raw `"file://"` string concatenation with `pathlib.Path.as_uri()`
for the `<base href>` tag, fixing cross-platform issues (backslashes on
Windows, missing third slash, unescaped spaces).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@drmingdrmer drmingdrmer merged commit 609f90c into master Feb 22, 2026
12 checks passed
@drmingdrmer drmingdrmer deleted the fix/asset-base-uses-file-concat branch February 22, 2026 11:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant