MCPcopy Create free account
hub / github.com/AI45Lab/Code / html_to_markdown

Function html_to_markdown

core/src/tools/builtin/web_fetch.rs:157–159  ·  view source on GitHub ↗

Convert HTML to markdown using htmd

(html: &str)

Source from the content-addressed store, hash-verified

155
156/// Convert HTML to markdown using htmd
157fn html_to_markdown(html: &str) -> String {
158 htmd::convert(html).unwrap_or_else(|_| html_to_text(html))
159}
160
161#[cfg(test)]
162mod tests {

Callers 2

executeMethod · 0.85
test_html_to_markdownFunction · 0.85

Calls 1

html_to_textFunction · 0.85

Tested by 1

test_html_to_markdownFunction · 0.68