Kind: Function
Source: atloria-monorepo/apps/web/src/components/change-requests/section-merge.ts
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
tsfunction spliceSection(content: string, heading: string, level: number, replacement: string): string
Parameters
| Name | Type |
|---|---|
content | string |
heading | string |
level | number |
replacement | string |
Returns: string
Was this page helpful?