EmbedContext
Defined in: src/obsidian/internals/EmbedRegistry/EmbedContext.d.ts:9
A context to configure embedding of a file.
Properties
Section titled “Properties”app:
App
Defined in: src/obsidian/internals/EmbedRegistry/EmbedContext.d.ts:13
Reference to the app.
containerEl
Section titled “containerEl”containerEl:
HTMLElement
Defined in: src/obsidian/internals/EmbedRegistry/EmbedContext.d.ts:18
Element where the embed should be displayed.
depth?
Section titled “depth?”
optionaldepth:number
Defined in: src/obsidian/internals/EmbedRegistry/EmbedContext.d.ts:23
Depth of the embed within its container (how many levels of embeds are above it).
displayMode?
Section titled “displayMode?”
optionaldisplayMode:boolean
Defined in: src/obsidian/internals/EmbedRegistry/EmbedContext.d.ts:28
Whether the embed should be dynamic (CM) or static (postProcessed).
linktext?
Section titled “linktext?”
optionallinktext:string
Defined in: src/obsidian/internals/EmbedRegistry/EmbedContext.d.ts:33
Text that should be displayed in the embed.
showInline?
Section titled “showInline?”
optionalshowInline:boolean
Defined in: src/obsidian/internals/EmbedRegistry/EmbedContext.d.ts:38
Whether the embed should be an inline embed.
sourcePath?
Section titled “sourcePath?”
optionalsourcePath:string
Defined in: src/obsidian/internals/EmbedRegistry/EmbedContext.d.ts:43
Optional path to the current open file.
state?
Section titled “state?”
optionalstate:unknown
Defined in: src/obsidian/internals/EmbedRegistry/EmbedContext.d.ts:46
Documentation incomplete.