Commit 95a741c
claude: Add Typst image alt text support for PDF/UA accessibility
Closes #13868
Workaround for Pandoc not passing alt text to Typst image() calls.
When an image has alt text (from caption or explicit alt attribute),
emit raw Typst with image(..., alt: "...") for accessibility.
This is a temporary fix until jgm/pandoc#11394 is merged upstream.
- Add alt text handling in render_typst_fixups() Image filter
- Alt parameter placed second after filename (matches Pandoc PR)
- Escape backslashes and quotes in alt text
- Add comprehensive test coverage with unique test images
- Replace test-image.png with smaller penrose.svg
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>1 parent 9c3c8f1 commit 95a741c
File tree
15 files changed
+230
-2
lines changed- news
- src/resources/filters/quarto-post
- tests/docs/smoke-all/pdf-standard
15 files changed
+230
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| 43 | + | |
43 | 44 | | |
44 | 45 | | |
45 | 46 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
97 | 131 | | |
98 | 132 | | |
99 | 133 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
Loading
Loading
Loading
Loading
Loading
Loading
Loading
0 commit comments