-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Description
I am trying to specify alt text for images in a powerpoint and found IMHO a privacy concern. Here's an MRE.
---
title: "A pptx"
author: Kermit
date: 2025-10-13
header-includes:
- \usepackage{setspace}
output:
ioslides_presentation:
incremental: true
---

Process it with pandoc -t pptx mre.md -o mre.pptx and right click on the image to "View Alt Text." What I see is the expected alt text ("A super pig"), plus the source link.
People who use local images may not be expecting to reveal possibly sensitive context info like folder paths as alt text, e.g., ../../pics_from_jimmy/before_surgery/2024_10_10/image.jpg. I think defaulting to include link/path info is more of a privacy concern than a feature.
The xml field in question appears to be:
<p:pic>
<p:nvPicPr>
<p:cNvPr descr="A super pig https://www.worldanimalprotection.us/cdn-cgi/image/width=2304,format=auto/siteassets/images/farming/pigs/pig-in-field-getty.png" id="0" name="Picture 1"/>
<p:cNvPicPr>
<a:picLocks noGrp="1" noChangeAspect="1"/>
</p:cNvPicPr>
<p:nvPr/>
</p:nvPicPr>
Commentary here suggests adding the link (or path) is necessary presumably if there's nothing else to include from the description. If there is a description (i.e., Alt Text) provided, can we omit the link/path?