# Bug OP-5868 - Wiki TOC doesn't render headings properly

Project: OpenProject
Status: closed
URL: https://community.openproject.org/work_packages/OP-5868

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module |  |
| Target versions | 9.0.2 |
| Observed in versions | 8.3.0 |
| Sprint | 9.0.2 |
| Backlog bucket |  |
| Bug found in version (deprecated) | 8.3.x |
| Found in mobile app version |  |
| Follow-up feedback e-mail |  |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Developers |  |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

| Attribute | Value |
| --- | --- |
| Relevance |  |

## Costs

| Attribute | Value |
| --- | --- |
| Votes |  |
| Work |  |
| Labor costs |  |

## Description

**Bug description**

  - The Wiki TOC doesn't render the headers properly. All headers, no matter if they are 1,2 or 3 are displayed the same.

**Steps to reproduce**

1.  Given this wiki source:

<!-- end list -->

``` text
<macro class="toc">
</macro>

# First

## Second

## Second

### Third

# First
```

The resulting TOC is this:

![](/api/v3/attachments/15689/content)

The headers in the TOC should look like this::

  - First
      - Second
      - Second
          - Third
  - First

**Resolution information**

  - OpenProject 8.3.2
