Workspaceon(‘quick-preview’)

Workspace.on(‘quick-preview’) method

Triggered when the active Markdown file is modified. React to file changes before they are saved to disk.

Signature:

on(name: 'quick-preview', callback: (file: TFile, data: string) => any, ctx?: any): EventRef;

Parameters

ParameterTypeDescription
name’quick-preview’
callback(file: TFile, data: string) any
ctxany(Optional)

Returns:

EventRef