Skip to content

Commit d6a5fc7

Browse files
cwickhamgithub-actions[bot]
authored andcommitted
Minor edits
(cherry picked from commit 199007c)
1 parent 01a822f commit d6a5fc7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/authoring/includes.qmd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ To include a file, add the `{{{< include >}}}` shortcode at the location in your
1515
::: callout-important
1616

1717
Include shortcodes are equivalent to copying and pasting the text from the included file into the main file.
18-
This means that relative references (links, images, other includes, etc.) inside the included file resolve based on the directory of the main file not the included file.
19-
Use absolute (to the project root) paths for links, images, or other includes, in included files to ensure they resolve correctly, *e.g.*, `[A Figure Reused](/path/to/image.png)` or `{{< include /path/to/file.qmd >}}`.
18+
This means that relative references (links, images, other includes, etc.) inside the included file resolve based on the directory of the main file not the included file.
19+
Use absolute (to the project root) paths for links, images, or other includes, in included files to ensure they resolve correctly, *e.g.*, `[A Figure Reused](/path/to/image.png)` or `{{< include /path/to/_file.qmd >}}`.
2020

2121
It also means that if the included file has a metadata block, that block will take effect in all included files. In most cases, having metadata blocks in an included file will cause unexpected behavior.
2222

0 commit comments

Comments
 (0)