quarto-dev / quarto-dev/quarto-cli
Multi-format Figures don't auto-append `png` extension.
Open
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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