posit-dev / posit-dev/open-source-website

alignment of figures in blog posts

Open
#209 0 comments 1 reaction 0 assignees View on GitHub

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

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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.