UNPKG

@mdfriday/foundry

Version:

The core engine of MDFriday. Convert Markdown and shortcodes into fully themed static sites – Hugo-style, powered by TypeScript.

26 lines (25 loc) 1.04 kB
import { FrontMatter, FrontMatterParser, LangService, TaxonomyService } from '../type'; export type Params = Record<string, any>; export declare function newFrontMatter(): FrontMatter; export declare class FrontMatterParserImpl implements FrontMatterParser { params: Record<string, any> | undefined; langSvc: LangService; taxonomySvc: TaxonomyService; constructor(params: Record<string, any> | undefined, langSvc: LangService, taxonomySvc: TaxonomyService); parse(baseURL: string): Promise<FrontMatter>; private parseDate; private parseWeight; private parseTitle; private parseDescription; private parseCustomized; private parseTerms; private parseOrganization; private parseMenu; private parseMenuItems; private parseAuthor; private parseContact; private parseSocial; private toSlashPreserveLeading; } export declare function getParamToLower(m: Params, key: string): any; export declare function getParam(p: Record<string, any>, key: string, stringToLower: boolean): any;