Skip to content

EmbedContext

Properties

app

app: App

Reference to the app


containerEl

containerEl: HTMLElement

Element where the embed should be displayed


depth?

optional depth: number

Depth of the embed within its container (how many levels of embeds are above it)


displayMode?

optional displayMode: boolean

Whether the embed should be dynamic (CM) or static (postProcessed)


linktext?

optional linktext: string

Text that should be displayed in the embed


showInline?

optional showInline: boolean

Whether the embed should be an inline embed


sourcePath?

optional sourcePath: string

Optional path to the current open file