mirror of
https://github.com/zed-industries/zed.git
synced 2024-09-19 02:17:35 +03:00
html_to_markdown: Remove unused examples (#12658)
This PR removes the unused `examples` from the `html_to_markdown` crate. I was just using these to dogfood the parsing initially, but now that it's wired up in the Assistant, the examples are no longer useful. Release Notes: - N/A
This commit is contained in:
parent
27beb9e697
commit
3fd118f8e1
@ -1,29 +0,0 @@
|
||||
use html_to_markdown::convert_rustdoc_to_markdown;
|
||||
use indoc::indoc;
|
||||
|
||||
pub fn main() {
|
||||
let html = indoc! {"
|
||||
<html>
|
||||
<body>
|
||||
<h1>Hello World</h1>
|
||||
<p>
|
||||
Here is some content.
|
||||
</p>
|
||||
<h2>Some items</h2>
|
||||
<ul>
|
||||
<li>One</li>
|
||||
<li>Two</li>
|
||||
<li>Three</li>
|
||||
</ul>
|
||||
</body>
|
||||
</html>
|
||||
"};
|
||||
// To test this out with some real input, try this:
|
||||
//
|
||||
// ```
|
||||
// let html = include_str!("/path/to/zed/target/doc/gpui/index.html");
|
||||
// ```
|
||||
let markdown = convert_rustdoc_to_markdown(html.as_bytes()).unwrap();
|
||||
|
||||
println!("{markdown}");
|
||||
}
|
Loading…
Reference in New Issue
Block a user