UNPKG

@mdfriday/foundry

Version:

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

57 lines 1.66 kB
export declare class Item { Type: ItemType; Err: Error | null; low: number; high: number; private segments; firstByte: number; private isString; content: string; bytes: string[]; constructor(); Pos(): number; Val(source: Uint8Array): Uint8Array; ValStr(source: Uint8Array): string; ValTyped(source: Uint8Array): any; IsText(): boolean; IsIndentation(): boolean; IsNonWhitespace(source: Uint8Array): boolean; IsShortcodeName(): boolean; IsInlineShortcodeName(): boolean; IsLeftShortcodeDelim(): boolean; IsRightShortcodeDelim(): boolean; IsShortcodeClose(): boolean; IsShortcodeParam(): boolean; IsShortcodeParamVal(): boolean; IsShortcodeMarkupDelimiter(): boolean; IsFrontMatter(): boolean; IsDone(): boolean; IsEOF(): boolean; IsError(): boolean; ToString(source: Uint8Array): string; } export declare enum ItemType { tError = 0, tEOF = 1, TypeLeadSummaryDivider = 2,// <!--more-->, # more TypeFrontMatterYAML = 3, TypeFrontMatterTOML = 4, TypeFrontMatterJSON = 5, TypeFrontMatterORG = 6, TypeIgnore = 7,// The BOM Unicode byte order marker and possibly others tLeftDelimScNoMarkup = 8, tRightDelimScNoMarkup = 9, tLeftDelimScWithMarkup = 10, tRightDelimScWithMarkup = 11, tScClose = 12, tScName = 13, tScNameInline = 14, tScParam = 15, tScParamVal = 16, tIndentation = 17, tText = 18,// plain text tKeywordMarker = 19 } export type Items = Item[]; export declare function itemTypeToString(itemType: ItemType): string; //# sourceMappingURL=item.d.ts.map