Skip to content

How to Directly Link a Plot Generated in a Code Chunk? #12351

Answered by mcanouil
danielvartan asked this question in Q&A
Discussion options

You must be logged in to vote

First, you should not use bare raw HTML (or any other languages) without telling Quarto what it is.
See raw content.
Second, your example is invalid. YAML blocks use --- (three) not ---- (four) delimiters. Please be sure you've tried your example before sharing it.

Finally, about your question, you can leverage one of the two systems below:

  • knitr specific system such as hooks, print method, etc.
  • Lua filter

For short, no there is not "Quarto CLI built-in" direct way.

I suggest you look at keep-md: true to understand what markdown is being emitted when trying out things. It helps understand why things do not work as expected.

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
2 replies
@mcanouil
Comment options

@danielvartan
Comment options

Answer selected by danielvartan
Comment options

You must be logged in to vote
1 reply
@mcanouil
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants