# spliceSection

**Kind:** Function

**Source:** [`atloria-monorepo/apps/web/src/components/change-requests/section-merge.ts`](https://github.com/sherkety/atloria/blob/main/atloria-monorepo/apps/web/src/components/change-requests/section-merge.ts#L69)

Replace one heading-delimited section of `content` with `replacement`.
If the section is not found in the current content, the section is appended
at the end (the proposal introduced a new section).

## Signature

```ts
function spliceSection(content: string, heading: string, level: number, replacement: string): string
```

## Parameters

| Name | Type |
|---|---|
| `content` | `string` |
| `heading` | `string` |
| `level` | `number` |
| `replacement` | `string` |

**Returns:** `string`
