pacific-hake / hake-assessment

:zap: :fish: Build the assessment document using latex and knitr
MIT License
13 stars 6 forks source link

Fix alt text when multiple instances of a png figure are added in different chunks #1151

Open cgrandin opened 9 months ago

cgrandin commented 9 months ago

If include_graphics() is used in two or more different chunks to load the same image file (same exact filename) then the alt text will cause malformed tag structure and the alt text will not appear on the PDF because the routine assumes exactly one instance of a filename with one instance of an alt text phrase. Need to modify post_process_add_alt_text() so that a filename can be used multiple times and be matched with the correct alt text phrases.