Interface RenderOptions

all options for epub rendering

interface RenderOptions {
    author?: string;
    copyright?: string;
    css?: string;
    description?: string;
    frames?: Map<string, string>;
    images?: Map<string, ImageData>;
    lang?: LangCode;
    missingImage?: MissingImage;
    publisher?: string;
    sections: readonly Section[];
    subjects?: readonly string[];
    title: string;
    uid?: string;
}

Properties

author?: string

the author

copyright?: string

a copyright statement for the epub

css?: string

custom global css to apply

description?: string

an extra description

frames?: Map<string, string>

iframes to include in the epub

If an iframe tag appears in sections, its src attribute must be present in this map. The value must be an xhtml frame document, unlike sections, this will not be converted to valid xhtml.

images?: Map<string, ImageData>

images to include in the epub

If an img tag appears in sections, its src attribute must be present in this map.

lang?: LangCode

the two letter language code (default: "en")

missingImage?: MissingImage

how to handle missing images and iframes

publisher?: string

the publisher

sections: readonly Section[]

the content of the epub

subjects?: readonly string[]

a set of subject tags

title: string

the title

uid?: string

a unique id for the epub

If omitted, one will be generated with uuid v4.

Generated using TypeDoc