# markdown_preview: Use UI font for base font size \(\#60212\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 995e56d2639eff49ebdb6e988d01f1593b14aff5

Requested commit: 995e56d2639eff49ebdb6e988d01f1593b14aff5

Commit: 995e56d2639eff49ebdb6e988d01f1593b14aff5

Tree: 1f63fcc0f9c54d4f9eb78034010e1fa358dcc773

Author: Danilo Leal

Committer: GitHub

## Message

```
markdown_preview: Use UI font for base font size (#60212)

This PR makes the `markdown_preview_font_size` setting be based on the
UI font size instead of the buffer UI font size. I typically use a much
smaller code font than UI font, and that made reading the markdown
preview super small. I don't think this will be uncommon because the
dimensions between mono and non-mono typefaces are different...

Release Notes:

- Changed the markdown preview to fall back to the UI font size instead
of the buffer font size when `markdown_preview_font_size` is unset.
```

## Parents

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

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