> For a complete index of all SignalWire documentation pages, fetch https://signalwire.com/docs/llms.txt

# renderMarkdown

> Render the entire model as a Markdown string.

Render all sections as a combined Markdown string. Each top-level section
becomes a `##` heading with its body text, bullet points, and nested
subsections rendered below it.

## **Parameters**

None.

## **Returns**

`string` -- The complete rendered Markdown prompt text.

## **Example**

```typescript {6}
import { PromptObjectModel } from '@signalwire/sdk';

const pom = new PromptObjectModel();
pom.addSection('Role', { body: 'You are a helpful assistant.' });
pom.addSection('Rules', { bullets: ['Be concise', 'Be accurate'] });
console.log(pom.renderMarkdown());
// ## Role
// You are a helpful assistant.
// ## Rules
// - Be concise
// - Be accurate
```