# Remove Markdown CodeBlock metadata and Custom rendering \(\#42211\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 77667f4844e3913f20f6af4cba99f7c3b2d73310

Requested commit: 77667f4844e3913f20f6af4cba99f7c3b2d73310

Commit: 77667f4844e3913f20f6af4cba99f7c3b2d73310

Tree: d1cc06feffee4fa3b84f0f1669ba38399a1d214a

Author: Xipeng Jin

Committer: GitHub

## Message

```
Remove Markdown CodeBlock metadata and Custom rendering (#42211)

Follow up #40736

Clean up `CodeBlockRenderer::Custom` related rendering per the previous
PR
[comment](https://github.com/zed-industries/zed/pull/40736#issuecomment-3503074893).
Additional note here:
1. The `Custom` variant in the enum `CodeBlockRenderer` will become not
useful since cleaning all code related to the custom rendering logic.
2. Need to further review the usage of code block `metadata` field in
`MarkdownTag::CodeBlock` enum.

I would like to have the team further review my note above so that we
can make sure it will be safe to clean it up and will not affect any
potential future features will be built on top of it. Thank you!

Release Notes:

- N/A
```

## Parents

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

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