Files
plainleaf/website/Transclusions.md
T
Zef HemelandGitHub 25d14031c9 Fixes #926
Libraries have been rethought, see associated documentation.
2024-07-11 20:36:26 +02:00

20 lines
771 B
Markdown

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:
# Images
Syntax: `![[path/to/image.jpg]]` see [[Attachments#Embedding]] for more details.
Image resizing is also supported:
![[Attachments#Image resizing]]
# 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]]