update tip

This commit is contained in:
Tom van Woudenberg 2025-03-27 08:37:21 +01:00
parent 09e0a7a2ce
commit 601c7704f0
2 changed files with 7 additions and 2 deletions

View file

@ -30,6 +30,11 @@ If you leave the text part empty, the title of the chapter you're referring to w
```md
[](path/to/file.md)
```
```{tip}
If the chapter you're referring to is in different directory than your chapter, you'll need to refer it using relative parts. If the to be referenced chapter is in a subdirectory of the directory of the chapter, go deeper with `subdirectory/` (e.g. `<subdirectory>/<chapter in subdirectory>.md`). If the to be referenced chapter is in another directory, move upwards with `../` (e.g. `../../<subdirectory>/<chapter which is located in a subdirectory two folders above the current page.md>` )
```
3. Try out another way of referencing by using a target header. Navigate to the chapter or section you want to reference and assign it an identifier using `{ref}` as shown in the example below.
```md