Skip to content

NormalizeFn

reference
1 min readUpdated

Kind: Type

Source: atloria-monorepo/apps/api/src/docs-repo/docs-repo.service.ts

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)

Was this page helpful?

Download as PDF