diff --git a/automation/workflow.py b/automation/workflow.py index 421a428..5a695cf 100644 --- a/automation/workflow.py +++ b/automation/workflow.py @@ -46,11 +46,21 @@ def extract_structured_basic(text: str) -> dict[str, list]: mentions: list[dict[str, str]] = [] timeline_data: dict[str, str] | None = None + in_comment = False + for line in text.splitlines(): participant, remainder = _extract_participant(line) stripped = line.strip() if not stripped: continue + if stripped.startswith(""): + in_comment = True + continue + if in_comment: + if stripped.endswith("-->"): + in_comment = False + continue if stripped.startswith("#"): continue analysis = remainder.strip() if participant else stripped