@mdfriday/foundry
Version:
The core engine of MDFriday. Convert Markdown and shortcodes into fully themed static sites – Hugo-style, powered by TypeScript.
27 lines (26 loc) • 874 B
TypeScript
import { Position, PageSource } from '../type';
import { Identity } from '../vo/identity';
import { FileInfo } from '../vo/fileinfo';
export declare function posFromInput(filename: string, input: Uint8Array, offset: number): Position;
export declare class Source implements PageSource {
id: string;
identity: Identity;
file: FileInfo;
constructor(file: FileInfo);
sourceKey(): string;
contentSource(): Promise<Uint8Array>;
private readSourceAll;
posOffset(offset: number): Promise<Position>;
pageIdentity(): Identity;
pageFile(): FileInfo;
staleVersions(): number[];
section(): string;
paths(): any;
path(): string;
slug(): string;
private pathToSlug;
opener(): () => Promise<any>;
openReader(): any;
content(): Promise<Uint8Array>;
}
export declare function newPageSource(file: FileInfo): Source;