MDN self-hosted library · e01.org

Summarizer: format property

Summarizer API

Open notebook · 1 cells web-api-instance-property upstream source

Summarizer API

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

Browser compatibility

See also