Repository navigation
Commit f8e7289
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 f802998 commit f8e7289
15 files changed
Lines changed: 230 additions & 2 deletions
File tree
- news
- src/resources/filters/quarto-post
- tests/docs/smoke-all/pdf-standard
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| 45 | + | |
45 | 46 | | |
46 | 47 | | |
47 | 48 | | |
| |||
| 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 | + | |
0 commit comments