---
title: strike
description: "Wrap text in Markdown strikethrough markers."
---

# strike

Wrap text in Markdown strikethrough markers.

## Syntax

```knap
{{ value | strike }}
```

## Usage

- 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.

## Example

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

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

```md title="Output"
~~Removed~~
```

## Related filters

- [bold](/filters/bold)
- [italic](/filters/italic)
- [highlight](/filters/highlight)
