Firefox Tomorrow

web api instance property

Summarizer: format property

View on MDN ↗

Limited availabilitySecure context

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 markdown formatting (conforming to the CommonMark spec).
  • plain-text
    • : Summaries contain no formatting.

Examples

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

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

Specifications

SpecificationsStandards references are available on the canonical MDN page.

Browser compatibility

Browser compatibilityCompatibility data is available on the canonical MDN page.

See also