Skip to content

Commit

Permalink
Add more detail to Support for sections. (foambubble#1296)
Browse files Browse the repository at this point in the history
* Add more detail to Support for `sections`.

* Removed extra quote

---------

Co-authored-by: Riccardo <[email protected]>
  • Loading branch information
jonathanpberger and riccardoferretti committed Oct 25, 2023
1 parent abe18cc commit bfcfad3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion docs/user/features/wikilinks.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit bfcfad3

Please sign in to comment.