-
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 10 replies
-
Could you share a small self-contained "working" (reproducible) example to work with, i.e., a complete Quarto document or a Git repository? Thanks. You can share a Quarto document using the following syntax, i.e., using more backticks than you have in your document (usually four ````qmd
---
title: "Reproducible Quarto Document"
format: html
---
This is a reproducible Quarto document using `format: html`.
It is written in Markdown and contains embedded R code.
When you run the code, it will produce a plot.
```{r}
plot(cars)
```
![A placeholder image](https://placehold.co/600x400.png)
The end.
```` |
Beta Was this translation helpful? Give feedback.
-
In HTML you will have indeed both Prefix and number as a link when using In PDF we do create this type of LaTeX content: Not sure which is the LaTeX way to provide a prefix to highlight too. I believe this syntax with only number as link is quite common in LaTeX. If you do have a LaTeX syntax to share, please do. Changing this could be possible but this is a feature request, and styling change are always quite complex to make because there is no better choice between one or the other usually. |
Beta Was this translation helpful? Give feedback.
Oh I see. In short I would say you are observing the difference between regular link to paths and cross reference links to part of content.
I missed that because this is expected to me I guess. This syntax
[text](relative-file.qmd)
means "create a url that points to a specific path".In HTML when doing a website, this is quite common to link to other file in the website. For ease of use, we indeed have a feature where link to a
.qmd
is transformed to link to its rendered.html
. Here you are using usual HTML links to url. This is not cross reference in the sense ref…