Add option to clamp width of caption to width of figure
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 56.1k
- Forks
- 1.7k
- Avg merge
- 3d 10h
- Merged PRs (30d)
- 22
Description
Description
An option to restrict the width available to the caption of a figure to the width of the figure would be nice. Currently it appears that the caption can take up the maximum width of whatever block or page it's in. Perhaps this can be some sort of global style for all figures and tables.
Use Case
Such a feature would make longer captions appear neater, particularly when set justified and when set under a figure that has had it's width modified. Currently, this can be sort of achieved using a #block with it's own width, but the Figure x: is placed on a different line to the caption content.
Ex of intention:
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
No files, tests, or entry points are named in the issue, so start by locating figure and caption layout code and existing width-related options. The change is complete when figures can opt into captions constrained to the figure width, with the intended behavior for global styling and tables resolved.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- design
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100