# Make HTML to Markdown conversion more pluggable \(\#12653\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 2d9479667f5b100c1769f76cad0e4ca0a3cf1163

Requested commit: 2d9479667f5b100c1769f76cad0e4ca0a3cf1163

Commit: 2d9479667f5b100c1769f76cad0e4ca0a3cf1163

Tree: 97b5d3a3c4fc043a11be00983ca3f5bff97254b0

Author: Marshall Bowers

Committer: GitHub

## Message

```
Make HTML to Markdown conversion more pluggable (#12653)

This PR overhauls the HTML to Markdown conversion functionality in order
to make it more pluggable. This will ultimately allow for supporting a
variety of different HTML input structures (both natively and via
extensions).

As part of this, the `rustdoc_to_markdown` crate has been renamed to
`html_to_markdown`.

The `MarkdownWriter` now accepts a list of trait objects that can be
used to drive the conversion of the HTML into Markdown. Right now we
have some generic handler implementations for going from plain HTML
elements to their Markdown equivalents, as well as some rustdoc-specific
ones.

Release Notes:

- N/A
```

## Parents

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

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