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

Function test_html_to_markdown

core/src/tools/builtin/web_fetch.rs:235–242  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

233
234 #[test]
235 fn test_html_to_markdown() {
236 let html = "<h1>Title</h1><p>Content here</p>";
237 let md = html_to_markdown(html);
238 assert!(md.contains("Title"));
239 assert!(md.contains("Content here"));
240 // htmd produces proper markdown headers
241 assert!(md.contains("# Title"));
242 }
243}

Callers

nothing calls this directly

Calls 1

html_to_markdownFunction · 0.85

Tested by

no test coverage detected