# markdown: Don't retain \`MarkdownStyle\` in favor of using \`MarkdownElement\` directly \(\#28255\) · gitcafe/zed

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

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

Visibility: public

Requested revision: b6ee367ee0e62a111164dd6e09c534e7e48bad5a

Requested commit: b6ee367ee0e62a111164dd6e09c534e7e48bad5a

Commit: b6ee367ee0e62a111164dd6e09c534e7e48bad5a

Tree: d31242de7217e0697dd31461629ee53d76e125e3

Author: Marshall Bowers

Committer: GitHub

## Message

```
markdown: Don't retain `MarkdownStyle` in favor of using `MarkdownElement` directly (#28255)

This PR removes the retained `MarkdownStyle` on the `Markdown` entity in
favor of using the `MarkdownElement` directly and passing the
`MarkdownStyle` to it.

This makes it so switching themes will be reflected live in the code
block styles.

Release Notes:

- N/A

---------

Co-authored-by: Antonio Scandurra <me@as-cii.com>
Co-authored-by: Agus Zubiaga <hi@aguz.me>
```

## Parents

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

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