Summarizer: format property

Limited availability

This feature is not Baseline because it does not work in some of the most widely-used browsers.

Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.

The format read-only property of the Summarizer interface returns the text format summaries will be returned in.

Value

An enumerated value specifying the format of returned summaries. Possible values are:

markdown

Summaries contain no formatting.

plain-text

Summaries contain markdown formatting (conforming to the CommonMark spec).

Examples

js
const summarizer = await Summarizer.create({
  format: "plain-text",
  // ...
});

// Logs "plain-text"
console.log(summarizer.format);

Specifications

Specification
Writing Assistance APIs
# dom-summarizer-format

Browser compatibility

See also