# agent_ui: Fix markdown heading sizes \(\#54766\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 442790c9bb6bea7153c12ca6eb1abd176108b59e

Requested commit: 442790c9bb6bea7153c12ca6eb1abd176108b59e

Commit: 442790c9bb6bea7153c12ca6eb1abd176108b59e

Tree: 976bc0c7d0e37cf53e14ceafd5287b7ff0f1f4a2

Author: Danilo Leal

Committer: GitHub

## Message

```
agent_ui: Fix markdown heading sizes (#54766)

Follow up to https://github.com/zed-industries/zed/pull/54374 as that
removed the custom heading styles that were mostly tailored to the agent
panel. It makes sense for those values not to be the ones used for
general markdown rendering, but I think it's just too big for the agent
panel. So I'm sort of hijacking the `MarkdownFont::Agent` enum here so
that we can set it conditionally to just the agent context.

Release Notes:

- N/A
```

## Parents

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

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