Improve the readme extraction
parent
716036d5ce
commit
d65343d912
|
@ -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",
|
||||||
|
|
Loading…
Reference in New Issue