0

I would like to add "hidden" text (the GitHub repo and code file name) to a report that is rendered to HTML with R Markdown (or Quarto). Is there an easy way to save some text information so it will show up when I inspect a document in a browser but the text will not show for the casual consumer of the web page?

itsMeInMiami
  • 2,324
  • 1
  • 13
  • 34

1 Answers1

1

With Quarto (and similar for R Markdown):

---
format: html
---

This is some text.

<!-- This will be displayed in the page source code but not in the output. -->
bretauv
  • 7,756
  • 2
  • 20
  • 57