Search code examples
quarto

Is it possible to have global cross references on a quarto website?


Im trying to build a quarto website which consists of several QMD files.

Is it possible to have cross references between different QMD files, so that if the "link" is clicked, it takes you to an object which is located in another tab on the website?

Im using the RStudio environment.

I could only find documentation how to do it on the same website tab.


Solution

  • If you want to reference for instance a section in another blog article (blog01.qmd), that have been labelled ## Example section {#sec-example-section}, you can do the following:

    [Link](blog01.qmd#sec-example-section)