Extract the human-readable description text from a raw docblock string. Parses the docblock with `mago-docblock` and returns the free-text content before the first `@tag`, with basic HTML converted to Markdown. Returns `None` if no description text is present.
(docblock: Option<&str>)
| 511 | /// content before the first `@tag`, with basic HTML converted to Markdown. |
| 512 | /// Returns `None` if no description text is present. |
| 513 | pub(crate) fn extract_docblock_description(docblock: Option<&str>) -> Option<String> { |
| 514 | let raw = docblock?; |
| 515 | let info = parse_docblock_for_tags(raw)?; |
| 516 | extract_description_from_info(&info) |
| 517 | } |
| 518 | |
| 519 | /// Shorten all namespace-qualified class names in a type string to their |
| 520 | /// short (unqualified) form. |
no test coverage detected