quarto-dev / quarto-dev/quarto-cli
(feature request): Allow mermaid figures to use labels as filenames
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 6k
- Forks
- 458
- Avg merge
- 1d 9h
- Merged PRs (30d)
- 41
Description
Currently, this is hard-coded (as discovered by @mcanouil):
-
[quarto-cli/src/core/handlers/mermaid.ts](https://github.com/quarto-dev/quarto-cli/blob/6eb757f663dae7f3992a1ad502ec730cf0d544b9/src/core/handlers/mermaid.ts#L342)
For more details, see: https://github.com/quarto-dev/quarto-cli/discussions/13403
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 reading src/core/handlers/mermaid.ts around lines 312 and 342, then review discussion 13403 for the requested filename behavior. Trace how Mermaid figure filenames are selected and verify that completed output uses the figure label instead of the current hard-coded name.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100