@mdfriday/foundry
Version:
The core engine of MDFriday. Convert Markdown and shortcodes into fully themed static sites – Hugo-style, powered by TypeScript.
23 lines (22 loc) • 730 B
TypeScript
import { TocFragments } from "@internal/domain/markdown";
export declare class Content {
private rawSource;
frontMatter?: Record<string, any>;
renderedContent: string;
summary: string;
wordCount: number;
readingTime: number;
toc?: TocFragments;
lazyRendered: boolean;
lazyRender: (() => Promise<void>) | undefined;
constructor(source: Uint8Array);
updateWithContentResult(result: any): void;
getRawSource(): Uint8Array;
RenderedContent(): Promise<string>;
Summary(): Promise<string>;
WordCount(): Promise<number>;
ReadingTime(): Promise<number>;
render(): Promise<void>;
isEmpty(): boolean;
}
export declare function newContent(source: Uint8Array): Content;