Repository navigation
Commit e099990
claude: Write mediabag entries to disk when bypassing Pandoc Image handling
When returning a RawInline instead of an Image element for Typst alt text
support, Pandoc doesn't write mediabag entries to disk. This caused data
URI images (like from the placeholder shortcode) and URL images to fail
because the file was never extracted.
Now explicitly call write_mediabag_entry() before returning RawInline to
ensure the image file exists on disk.
Adds test for URL image mediabag handling that verifies:
- Image is extracted to mediabag directory
- Raw URL is not present in output
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>1 parent 84f9c60 commit e099990
2 files changed
Lines changed: 30 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
106 | 114 | | |
107 | 115 | | |
108 | 116 | | |
109 | 117 | | |
110 | | - | |
| 118 | + | |
111 | 119 | | |
112 | 120 | | |
113 | 121 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
0 commit comments