Improve the readme extraction

main
kirbylife 2024-10-02 18:58:11 -06:00
parent 716036d5ce
commit d65343d912
1 changed files with 1 additions and 1 deletions

View File

@ -159,7 +159,7 @@ pub fn search_crate(crate_name: String) -> Option<CrateInfo> {
.collect::<Vec<Version>>(); .collect::<Vec<Version>>();
let latest_version = versions.first().unwrap().clone(); let latest_version = versions.first().unwrap().clone();
let readme = resp.css_once("#readme").map(|elem| { let readme = resp.css_once(".readme").map(|elem| {
let converter = HtmlToMarkdown::builder() let converter = HtmlToMarkdown::builder()
.skip_tags(vec![ .skip_tags(vec![
"h1", "h1",