# mapSections()

[**PromptScript API**](https://getpromptscript.dev/api-reference/index.md)

***

# Function: mapSections()

> **mapSections**(`sections`): [`ScoredSection`](https://getpromptscript.dev/api-reference/importer/src/interfaces/ScoredSection/index.md)[]

Defined in: [importer/src/mapper.ts:10](https://github.com/mrwogu/promptscript/blob/49aa50f943865b985366c4eda6e95c5a31ef39a6/packages/importer/src/mapper.ts#L10)

## Parameters

### sections

[`MarkdownSection`](https://getpromptscript.dev/api-reference/importer/src/interfaces/MarkdownSection/index.md)[]

## Returns

[`ScoredSection`](https://getpromptscript.dev/api-reference/importer/src/interfaces/ScoredSection/index.md)[]