---
title: h1
description: "Create a level-one heading."
---

# h1

Create a level-one heading.

## Syntax

```knap
{{ value | h1 }}
```

## 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 | h1 }}
```

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

## Related filters

- [h2](/filters/h2)
- [h3](/filters/h3)
- [h4](/filters/h4)
- [h5](/filters/h5)
- [h6](/filters/h6)
