quarto-dev / quarto-dev/quarto-cli

Lint: warn when knitr classes are used (was: use plot as blog post image)

Open
#8,804 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement lint
Dominant language
JavaScript
Stars
6k
Forks
458
Avg merge
1d 9h
Merged PRs (30d)
41

Description

Hi there,
I am using (quarto 1.4.550), and my problem is that #| class-output: preview-image seems to be ignored. Please find a working example at https://github.com/produnis/testing and have a look at the "Welcome" post. Instead of the first Anscombe plot, the Datasaurus was ment to be used as the preview pic....

Greetings, Joe

Originally posted by @produnis in https://github.com/quarto-dev/quarto-cli/issues/2324#issuecomment-1955082372

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

Reproduce the report with Quarto 1.4.550 using the linked testing repository, then inspect posts/welcome/index.qmd and the Welcome post example. Confirm how #| class-output: preview-image is handled and whether the expected Datasaurus image is selected instead of the first Anscombe plot.

Written by the indexing model from the issue text.

Assessment

Domain
content
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.