Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Q&A

Welcome to Codidact Meta!

Codidact Meta is the "town hall" (meta-discussion site) for the Codidact community network and the Codidact software. Whether you have bug reports or feature requests, support questions or rule discussions that touch the whole network – this is the site for you.

Codidact warns me that images in a post lack alternative captions, yet no images exist.

+4
−0

When I attempt to update posts/294861/edit with:

Recently, I posted electrical.codidact.com/comments/thread/11173#comment-27698, which cites two images from Wikipedia, and another from elsewhere.

Although citing versioned MediaWiki URIs from Wikipedia isn't problematic, because they'll never become 404s, I've been forced to cite szapphone.com/wp-content/uploads/2023/11/usb-c-pinout-diagram.webp, because I am unable to paste images into comments, which may well become so.

A workaround may exist: to post an image to an external hoster, [1] then embed that image with a CommonMark hyperlink (![]()). However, I've yet to ascertain whether that operates either, and [2] it, regardless, wouldn't be convenient, nor significantly more stable.

...I see:

<div class="notice is-warning"><ul><li>It looks like you're posting an image with no alt text. Alt text is important for accessibility. Consider adding alt text to the images in your post - <a href="/help/alt-text">read this help article</a> for details and help writing alt text.</li></ul></div>

A Screenshot

However, that markup contains no embedded images:

Recently, I posted [`electrical.codidact.com/comments/thread/11173#comment-27698`](https://electrical.codidact.com/comments/thread/11173#comment-27698), which cites two images from Wikipedia, and another from elsewhere.

Although citing versioned MediaWiki URIs from Wikipedia isn't problematic, because they'll never become 404s, I've been forced to cite [`szapphone.com/wp-content/uploads/2023/11/usb-c-pinout-diagram.webp`](https://www.szapphone.com/wp-content/uploads/2023/11/usb-c-pinout-diagram.webp), because I am unable to paste images into comments, which may well become so.

<del>A workaround may exist: to post an image to an external hoster, [^1] then embed that image with a CommonMark hyperlink (`![]()`). However, I've yet to ascertain whether that operates either, and</del> [^2] it, regardless, wouldn't be convenient, nor *significantly* more stable.

[^2]: [`comments/thread/11190#comment-27707`](https://meta.codidact.com/comments/thread/11190#comment-27707)

[^1]: [`github.com/pixelfed/pixelfed/issues/6211#issue-3553892727`](https://github.com/pixelfed/pixelfed/issues/6211#issue-3553892727:~:text=I%20post%20almost%20solely%20unlisted%20images%2C%20to%20replace%20Imgur)

Very iconically, it even did so for this one, before I added the image [3] (and continues to with it added, despite its caption).

Current Triage Status

I have reported this upstream, at github.com/codidact/qpixel/issues/1889.


  1. github.com/pixelfed/pixelfed/issues/6211#issue-3553892727 ↩︎

  2. comments/thread/11190#comment-27707 ↩︎

  3. /history#2 ↩︎

History

0 comment threads

1 answer

+5
−0

I suspected that the bug was being triggered by the presence of the Markdown

`![]()`

even though this was enclosed in backticks.


When I tried posting the text up until the first horizontal line, the warning was not triggered, so it seemed that a code block (triple backticks) suppressed the warning, but inline code (single backticks) within a paragraph such as ![]() did not.


My guess was incorrect, because I did not receive the warning even after posting the text up until the second horizontal line.


It turns out that the parentheses need to be non-empty to trigger the warning:

![](X)

The text inside the parentheses can be anything, including another parenthesis, which is why ![]()) triggers the warning but ![]() does not. Whether this is inside a code block or inline code is irrelevant.

One possible solution might be to omit code blocks and inline code from the post before applying the check.

History

0 comment threads

Sign up to answer this question »