> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ofauth.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Text formatting

> Add bold, italic, color, and larger text to posts and messages.

Write plain text in the `text` field. Add the marks below to format it. Formatting is on by default for posts and messages. HTML is displayed as text.

## Formatting options

| Write | Result |
| - | - |
| `**text**` | **Bold** |
| `*text*` | *Italic* |
| `***text***` | Bold, italic, and accent blue |
| `~text~` | Gray |
| `~~text~~` | Blue |
| `# text` | Largest text |
| `## text` | Large text |

Use spaces or line breaks around styled words. For example, `Hello **Alex**` makes Alex bold. Formatting inside a word does not work.

Underscores also work: `_text_` for italic, `__text__` for bold, and `___text___` for bold, italic, and accent blue. Put `#` or `##` at the start of a line, followed by a space.

Set `isMarkdown: false` to keep formatting marks as plain text.

## Line breaks

Use `\n` for a new line and `\n\n` for a blank line:

```text theme={null}
First line\nSecond line\n\nNew paragraph
```

## Use in a post or message

Use the SDK client from [Send a message](https://docs.ofauth.com/v3/guides/how-to/send-message.md) or [Create a post](https://docs.ofauth.com/v3/guides/how-to/create-post.md):

```typescript Send a message theme={null}
await client.access.chats.messages.send({
  userId: 123456,
  body: { text: "**New photos**\nA first look at today's shoot." }
})
```

```typescript Create a post theme={null}
await client.access.posts.create({
  body: { text: "# New photos\nA first look at today's shoot." }
})
```

For stories, add text to the image before [uploading it](https://docs.ofauth.com/v3/guides/how-to/create-story.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.