@mdfriday/foundry
Version:
The core engine of MDFriday. Convert Markdown and shortcodes into fully themed static sites – Hugo-style, powered by TypeScript.
37 lines • 1.08 kB
TypeScript
import { TocFragments } from "../../../domain/markdown";
export declare class Content {
private rawSource;
/** Front matter data */
frontMatter?: Record<string, any>;
/** Final rendered HTML content */
renderedContent: string;
/** Content summary */
summary: string;
/** Word count */
wordCount: number;
/** Reading time in minutes */
readingTime: number;
toc?: TocFragments;
lazyRendered: boolean;
lazyRender: (() => Promise<void>) | undefined;
constructor(source: Uint8Array);
/**
* Update content with parsed and rendered data
*/
updateWithContentResult(result: any): void;
/**
* Get raw source content
*/
getRawSource(): Uint8Array;
RenderedContent(): Promise<string>;
Summary(): Promise<string>;
WordCount(): Promise<number>;
ReadingTime(): Promise<number>;
render(): Promise<void>;
/**
* Check if content is empty
*/
isEmpty(): boolean;
}
export declare function newContent(source: Uint8Array): Content;
//# sourceMappingURL=pagecontent.d.ts.map