pub fn extract_method_markdown_from_html(
html: &str,
method_name: &str,
) -> AppResult<(String, bool)>Expand description
Extract markdown for a single associated method by rustdoc id="method.X".
Locates the method anchor and prefers the enclosing details.method-toggle
(signature + docblock). Fail-closed: missing or empty anchors return
crate::error::ErrorKind::NotFound — never the full parent page as a method success
(Camada Y / GAP-W-001).
§Errors
Returns crate::error::ErrorKind::NotFound when the method anchor is absent or empty.
Returns crate::error::ErrorKind::Parse when HTML→Markdown conversion fails.