---
title: bold
description: "Wrap text in Markdown bold markers."
---

# bold

Wrap text in Markdown bold markers.

## Syntax

```knap
{{ value | bold }}
{{ value | bold:_ }}
```

## Usage

- The default marker is `*`. Pass `_` to use the alternate underscore syntax. The marker is doubled around the value.
- Leading and trailing whitespace stays outside inline markers.
- For arrays and objects, including serialized collections from another filter, string values are formatted recursively while keys and non-string values are preserved.

## Examples

### Asterisks

```json title="Data"
{
  "text": "Important"
}
```

```knap title="Template"
{{ text | bold }}
```

```md title="Output"
**Important**
```

### Underscores

```json title="Data"
{
  "text": "Important"
}
```

```knap title="Template"
{{ text | bold:_ }}
```

```md title="Output"
__Important__
```

## Related filters

- [italic](/filters/italic)
- [strike](/filters/strike)
