---
title: h4
description: "Create a level-four heading."
---

# h4

Create a level-four heading.

## Syntax

```knap
{{ value | h4 }}
```

## Usage

- Each nonempty data line becomes a heading.
- 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"
{
  "title": "Introduction"
}
```

```knap title="Template"
{{ title | h4 }}
```

```md title="Output"
#### Introduction
```

## Related filters

- [h3](/filters/h3)
- [h5](/filters/h5)
