# Introduce a new \`markdown\` crate \(\#11556\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 5df1481297758f4a695906f94feacd2603bba439

Requested commit: 5df1481297758f4a695906f94feacd2603bba439

Commit: 5df1481297758f4a695906f94feacd2603bba439

Tree: 7242a02b76661ed3a45c9f03de95d4dea6e7a0be

Author: Antonio Scandurra

Committer: GitHub

## Message

```
Introduce a new `markdown` crate (#11556)

This pull request introduces a new `markdown` crate which is capable of
parsing and rendering a Markdown source. One of the key additions is
that it enables text selection within a `Markdown` view. Eventually,
this will replace `RichText` but for now the goal is to use it in the
assistant revamped assistant in the spirit of making progress.

<img width="711" alt="image"
src="https://github.com/zed-industries/zed/assets/482957/b56c777b-e57c-42f9-95c1-3ada22f63a69">

Note that this pull request doesn't yet use the new markdown renderer in
`assistant2`. This is because we need to modify the assistant before
slotting in the new renderer and I wanted to merge this independently of
those changes.

Release Notes:

- N/A

---------

Co-authored-by: Nathan Sobo <nathan@zed.dev>
Co-authored-by: Conrad <conrad@zed.dev>
Co-authored-by: Alp <akeles@umd.edu>
Co-authored-by: Zachiah Sawyer <zachiah@proton.me>
```

## Parents

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

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