UNPKG

longform-markdown-splitter

Version:

Splits and transforms markdown files from obsidian for usage in hugo.

27 lines (26 loc) 1.32 kB
export interface MD_FileContent_Interface { frontmatter: string; frontmatter_attributes: any; body_array: string[]; index: number; } export declare class MD_Filesystem { static split_frontmatter_body(content: string): MD_FileContent_Interface; static merge_frontmatter_body(mdfc: MD_FileContent_Interface): string; static copy_file(source: string, target: string, simulate?: boolean): void; static isFolder(my_path: string): boolean; static isFile(my_path: string): boolean; static is_file_exist(my_path: string): boolean; static is_file_modified(file_source: string, file_target: string): boolean; static get_filename_from(my_path_filename: string): string; static get_path_from(my_path_filename: string): string; static concat_path_filename(my_path: string, my_filename: string): string; static ensure_path(my_path: string, simulate?: boolean): void; static get_path_parts(my_path: string): string[]; static get_path_depth(my_path: string): number; static get_files_list(dir: string, files?: Array<string>): Array<string>; static read_file(file: string): string; static write_file(writePath: string, content: string): void; static read_file_json(file: string): any; static write_file_json(file: string, json_object: any): void; }