md-curcuma
Version:
A Typescript library for transporting and converting markdown and other data.
30 lines (29 loc) • 1.31 kB
TypeScript
import { Data_Interface } from "../../io/types";
import { MD_FileContent } from "./helpers/MD_FileContent";
import { MD_Observable_Abstract_TaskBase } from "./MD_Observable_Abstract_TaskBase";
import { CopyTask_Type } from "../../core/copy-job";
import { MD_Task_Parameter_Type, Task_Interface } from "../types";
export interface MD_LinkTransformer_TemplateValues_Type {
name_full: string;
name: string;
name_suffix: string;
}
export declare class MD_ObsidianLink_Task<T extends string> extends MD_Observable_Abstract_TaskBase<T> implements Task_Interface<T> {
protected tag_obsidian_prefix: string;
protected tag_obsidian_suffix: string;
protected find_rule: string;
protected replace_template: string;
protected tag: string;
protected copy_task?: CopyTask_Type;
parameter: MD_Task_Parameter_Type;
collection: string[] | null | undefined;
counter: number;
doCollect: boolean;
protected template_values: MD_LinkTransformer_TemplateValues_Type;
constructor(parameter: MD_Task_Parameter_Type);
perform(dao: Data_Interface<T>): Data_Interface<T>;
protected transform(mdfc: MD_FileContent, index: number): MD_FileContent;
super_transform(file_content: any, index: number): any;
private reset;
protected toString(what: string): string;
}