Skip to content

FORMATTING

const FORMATTING: readonly ["reformat", "verbatim"];

Whether Trove reformats a source’s documents into clean Markdown on ingest, or stores them exactly as received.

reformat restructures the body — headings, paragraph breaks, lists — while preserving the words verbatim, with a fidelity gate that falls back to the original if the rewrite would alter them. verbatim leaves the body untouched.

The field is optional and defaults to verbatim, so a new or third-party source never has its data altered unless its author opts in. That default is why formatting is deliberately not one of the SOURCE_TYPE_FIELDS, which are the fields a source must declare.