@mdfriday/foundry
Version:
The core engine of MDFriday. Convert Markdown and shortcodes into fully themed static sites – Hugo-style, powered by TypeScript.
17 lines (16 loc) • 753 B
TypeScript
export declare const externalLinkRegex: RegExp;
export declare const wikilinkRegex: RegExp;
export declare const tableRegex: RegExp;
export declare const tableWikilinkRegex: RegExp;
export declare function preprocessWikilinks(src: string): string;
export interface WikilinkComponents {
isEmbed: boolean;
filepath: string;
anchor: string;
alias?: string;
url: string;
}
export declare function parseWikilink(match: string): WikilinkComponents | null;
export declare function getEmbedType(filepath: string): 'image' | 'video' | 'audio' | 'pdf' | 'transclude';
export declare function generateEmbedHtml(components: WikilinkComponents): string;
export declare function checkWikilinkExists(filepath: string, allSlugs: string[]): boolean;