2024-07-09 15:22:08 +08:00
|
|
|
Transclusions are an extension of the [[Markdown]] syntax enabling inline embedding of content.
|
|
|
|
|
|
|
|
The general syntax is `![[path]]`. Two types of transclusions are currently supported:
|
|
|
|
|
2024-08-02 22:30:39 +08:00
|
|
|
# Media
|
2024-07-09 15:22:08 +08:00
|
|
|
Syntax: `![[path/to/image.jpg]]` see [[Attachments#Embedding]] for more details.
|
|
|
|
|
2024-08-02 22:30:39 +08:00
|
|
|
Media resizing is also supported:
|
|
|
|
![[Attachments#Media resizing]]
|
2024-07-09 15:22:08 +08:00
|
|
|
# Pages
|
|
|
|
Syntax:
|
|
|
|
* `![[page name]]` embed an entire page
|
|
|
|
* `![[page name#header]]` embed only a section (guarded by the given header)
|
|
|
|
* `![[page$anchor]]` embed a page _from_ the given anchor until the end of the page
|
|
|
|
* `![[page@pos]]` embed a page _from_ the given character position until the end of the page
|
|
|
|
|
|
|
|
For example, to embed a full page:
|
|
|
|
![[internal/test page]]
|
|
|
|
And just a header:
|
|
|
|
![[internal/test page#This is a header]]
|