# markdown: Add frontmatter metadata block rendering \(\#57845\) · gitcafe/zed

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

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

Visibility: public

Requested revision: f0ed342c1956b874b67e0f5cd2e42a9cd409ac32

Requested commit: f0ed342c1956b874b67e0f5cd2e42a9cd409ac32

Commit: f0ed342c1956b874b67e0f5cd2e42a9cd409ac32

Tree: 84675cde8cfd7df5f6eafe55faf9262544e78589

Author: Smit Barmase

Committer: GitHub

## Message

```
markdown: Add frontmatter metadata block rendering (#57845)

Adds opt-in rendering for Markdown frontmatter metadata blocks in
Markdown Preview and agent markdown.

- Simple `key: value` metadata blocks now render as a two-column table,
while more complex metadata falls back to a code-style block.
- Metadata block content and key/value rows are parsed in the parser
step, and the request layout simply takes over rendering.

<img width="1288" height="436" alt="image"
src="https://github.com/user-attachments/assets/b35b949a-8bc4-47db-82ef-ed835e9ac06f"
/>

Release Notes:

- Added support for rendering Markdown frontmatter metadata blocks in
Markdown Preview and Agent Panel.
```

## Parents

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

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