# markdown: Add ability to customize individual heading level \(\#28733\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/7e1b41924354c4297301a8bbe45b4b41d51aa26e)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 7e1b41924354c4297301a8bbe45b4b41d51aa26e

Requested commit: 7e1b41924354c4297301a8bbe45b4b41d51aa26e

Commit: 7e1b41924354c4297301a8bbe45b4b41d51aa26e

Tree: fcbeea5c19f9ce6c44d8f22e46ad09637141dba6

Author: Danilo Leal

Committer: GitHub

## Message

````
markdown: Add ability to customize individual heading level (#28733)

This PR adds a new field in the `MarkdownStyle` struct,
`heading_level_styles`, allowing, via the newly added function
`apply_heading_style` and struct `HeadingLevelStyles` to customize each
individual heading level in Markdown rendering/styling function.

Things like this should now be possible:

```rust
    MarkdownStyle {
        heading_level_styles: Some(HeadingLevelStyles {
            h1: Some(TextStyleRefinement {
                font_size: Some(rems(1.15).into()),
                ..Default::default()
            }),
        }),
        ..Default::default()
    }
```

Release Notes:

- N/A
````

## Parents

- [98d001bad57c89728767680f09a53213654a5279](https://git.cafe/gitcafe/zed/commit/98d001bad57c89728767680f09a53213654a5279?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/7e1b41924354c4297301a8bbe45b4b41d51aa26e?format=markdown)
