`fig-alt` attributes is not correctly processed on image for gfm output.

Open
#12,456 7 comments 0 reactions 2 assignees View on GitHub

@cderv is already working on this.

Since Apr 4, 2025.

Assessment

This issue has not been assessed yet.

Description

bug lua markdown

I think we are just not handling fig-alt (which is a quarto image attribute https://quarto.org/docs/authoring/figures.html#alt-text) for gfm format. 🤔

---
title: "Untitled"
format: gfm
---

![](surus.png){fig-alt='A placeholder image'}

gives

# Untitled


<img src="surus.png" data-fig-alt="A placeholder image" />

which seems unexpected to me

Originally posted by @cderv in https://github.com/quarto-dev/quarto-cli/discussions/12443#discussioncomment-12726029

Dominant language
JavaScript
Stars
6k
Forks
458
Avg merge
1d 9h
Merged PRs (30d)
41

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from quarto-dev/quarto-cli

All issues in quarto-dev/quarto-cli

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.