# NormalizeFn

**Kind:** Type

**Source:** [`atloria-monorepo/apps/api/src/docs-repo/docs-repo.service.ts`](https://github.com/sherkety/atloria/blob/main/atloria-monorepo/apps/api/src/docs-repo/docs-repo.service.ts#L18)

The markdown canonicaliser (@atloria/doc-normalizer.normalize). Injected via the
DOC_NORMALIZE token so this service has NO static dependency on the ESM-only mdast
stack — the real function is provided by DocsRepoModule (webpack bundles it at build),
and unit tests supply a faithful stand-in. Every stored content byte goes through this.

## Definition

```ts
(markdown: string) => string
```

## Referenced By

- `DocsRepoService` (DEPENDS_ON)
