diff --git a/src/ifcopenshell-python/ifcopenshell/util/doc.py b/src/ifcopenshell-python/ifcopenshell/util/doc.py index b0443f6117..be780c0bd8 100644 --- a/src/ifcopenshell-python/ifcopenshell/util/doc.py +++ b/src/ifcopenshell-python/ifcopenshell/util/doc.py @@ -265,6 +265,33 @@ class DocExtractor: description = description.strip() return description + def extract_full_description(self, html: str) -> str: + """Extract the full definition text from markdown-derived HTML. + + Entity/type documentation often introduces a bulleted list mid-definition + (e.g. "... may include:" followed by a `