quarto-dev / quarto-dev/quarto-cli

Multi-format Figures don't auto-append `png` extension.

Open
#4,487 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

You can write markdown that provides a distinct image file format depending on the target output format. To do this simply leave-off the extension, for example

Not yet supported, it currently doesn't append the extension.


<ac:image
    ac:align="center"
    ac:layout="center"
    ac:alt=""
    ac:src="elephant">
        <ri:attachment ri:filename="elephant" />
    </ac:image>

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.

Research direction

Start by locating the Quarto CLI code that handles multi-format figures and attachment filenames, then trace how an extensionless elephant source is resolved for each output format. Confirm the behavior with a focused rendering example covering the PNG target; done means the appropriate extension is appended automatically.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
cli
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.