posit-dev / posit-dev/open-source-website
alignment of figures in blog posts
Open
Nobody has claimed this yet.
blog
- Dominant language
- HTML
- Stars
- 55
- Forks
- 24
- Avg merge
- 1d 21h
- Merged PRs (30d)
- 17
Description
This R chunk uses #| fig-align: center and does produce HTML with that tag:
<img src="index.markdown_strict_files/figure-markdown_strict/quantile-tune-res-1.png" data-fig-align="center" width="480" />
However, on local render, it does not appear to be aligned. Inspect Elements from the browser did not show me anything conclusive. @cwickham
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 with the linked R chunk at lines 145–160 and render the blog post locally. Inspect the generated figure HTML and its browser styles to determine why data-fig-align="center" is not centering the image. Done means the figure is visibly centered in the local rendered post and the relevant rendering behavior is covered or verified.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- html, r
- Domain
- frontend, web-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100