Class MarkdownFileProcessor
Constructors
constructor
Parameters
- plugin: default
- sourcePath: string
- callback: (content: string) => string
Properties
Private Readonlycallback
callback: (content: string) => string
Private ReadonlysourcePath
sourcePath: string
Methods
execute
execute(): Promise<boolean>
A wrapper class to use a call back function for processing markdown file.
Remarks
If any problems in processing, we can throw error in callback function
Param: plugin
the plugin instance, used for accessing vault and other resources
Param: sourcePath
the path of the markdown file to process, would normalize automatically.
Param: callback
the async callback function to process the file content