From 158665acb038626497d4a5f729e632a60514800f Mon Sep 17 00:00:00 2001 From: Riccardo Date: Wed, 25 Oct 2023 13:11:36 +0200 Subject: [PATCH] Docs sync @ bfcfad3 Add more detail to Support for `sections`. (#1296) (#55) --- docs/features/wikilinks.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/features/wikilinks.md b/docs/features/wikilinks.md index f5a585d..2ac04de 100644 --- a/docs/features/wikilinks.md +++ b/docs/features/wikilinks.md @@ -20,7 +20,10 @@ Remember, with `CTRL/CMD+click` on a wikilink you can navigate to the note, or c ## Support for sections -Foam supports autocompletion, navigation, embedding and diagnostics for note sections. Just use the standard wiki syntax of `[[resource#Section Title]]`. +Foam supports autocompletion, navigation, embedding and diagnostics for note sections. Just use the standard wiki syntax of `[[resource#Section Title]]`. +- If it's an external file, `[your link will need the filename](other-file.md#that-section-I-want-to-link-to)`, but +- if it's an anchor within the same document, `[you just need an octothorpe and the section name](#that-section-above)`. +- Doesn't matter what heading-level the anchor is; whether you're linking to an `H1` like `# MEN WALK ON MOON` or an `H2` like `## Astronauts Land on Plain`, the link syntax uses a single octothorpe: `[Walk!](#men-walk-on-moon)` and `[Land!](#astronauts-land-on-plain-collect-rocks-plant-flag)`. Autocomplete is your friend here. ## Markdown compatibility