mirror of
https://github.com/alrayyes/wiki.git
synced 2024-11-25 21:16:21 +00:00
24 lines
1.3 KiB
Markdown
24 lines
1.3 KiB
Markdown
---
|
|
title: Wikilinks
|
|
---
|
|
|
|
Wikilinks were pioneered by earlier internet wikis to make it easier to write links across pages without needing to write Markdown or HTML links each time.
|
|
|
|
Quartz supports Wikilinks by default and these links are resolved by Quartz using `Plugin.CrawlLinks`. See the [Obsidian Help page on Internal Links](https://help.obsidian.md/Linking+notes+and+files/Internal+links) for more information on Wikilink syntax.
|
|
|
|
This is enabled as a part of [[Obsidian compatibility]] and can be configured and enabled/disabled from that plugin.
|
|
|
|
## Syntax
|
|
|
|
- `[[Path to file]]`: produces a link to `Path to file.md` (or `Path-to-file.md`) with the text `Path to file`
|
|
- `[[Path to file | Here's the title override]]`: produces a link to `Path to file.md` with the text `Here's the title override`
|
|
- `[[Path to file#Anchor]]`: produces a link to the anchor `Anchor` in the file `Path to file.md`
|
|
- `[[Path to file#^block-ref]]`: produces a link to the specific block `block-ref` in the file `Path to file.md`
|
|
|
|
### Embeds
|
|
|
|
- `![[Path to image]]`: embeds an image into the page
|
|
- `![[Path to image|100x145]]`: embeds an image into the page with dimensions 100px by 145px
|
|
- `![[Path to file]]`: transclude an entire page
|
|
- `![[Path to file#Anchor]]`: transclude everything under the header `Anchor`
|
|
- `![[Path to file#^b15695]]`: transclude block with ID `^b15695`
|