Interface ChapterNode

A chapter in the book.

interface ChapterNode {
    children?: ChapterNode[];
    content?: string;
    css?: RefNode<Css>[];
    fonts?: RefNode<Font>[];
    format: string;
    id: string;
    order: number;
    src?: PathLike;
    title: string;
    type: Chapter;
}

Hierarchy (view full)

Properties

children?: ChapterNode[]

The child chapters.

content?: string

The content of the source. If provided, the src property is ignored.

css?: RefNode<Css>[]

The CSS files of the chapter.

fonts?: RefNode<Font>[]

The images of the chapter.

format: string

The format of the content.

id: string

The unique identifier of the node.

order: number

The order of the chapter.

src?: PathLike

The file path or URL of the source. If content is provided, this property is ignored.

title: string

The title of the chapter.

type: Chapter

The type of the node.