# extractProtectedSegments

**Kind:** Function

**Source:** [`atloria-monorepo/apps/api/src/l10n/translation-format.ts`](https://github.com/sherkety/atloria/blob/main/atloria-monorepo/apps/api/src/l10n/translation-format.ts#L45)

Ordered protected segments of a markdown page: whole fenced code blocks (``` / ~~~,
fences included) and directive lines (trimmed line starting with `:::` or `::`).
Indented code blocks are NOT protected (they are indistinguishable from lists at
this altitude); Atloria generators emit fenced blocks only.

## Signature

```ts
function extractProtectedSegments(markdown: string): string[]
```

## Parameters

| Name | Type |
|---|---|
| `markdown` | `string` |

**Returns:** `string[]`
