Fix regex pattern in parse_edges_robust to support multiple leading '>' characters for edge callouts, enhancing flexibility in edge parsing.
This commit is contained in:
parent
20fb1e92e2
commit
f51e1cb2c4
|
|
@ -224,7 +224,7 @@ def parse_edges_robust(text: str) -> List[Dict[str, Any]]:
|
||||||
current_edge_type = None
|
current_edge_type = None
|
||||||
for line in lines:
|
for line in lines:
|
||||||
stripped = line.strip()
|
stripped = line.strip()
|
||||||
callout_match = re.match(r'>\s*\[!edge\]\s*([^:\s]+)', stripped)
|
callout_match = re.match(r'>+\s*\[!edge\]\s*([^:\s]+)', stripped)
|
||||||
if callout_match:
|
if callout_match:
|
||||||
current_edge_type = callout_match.group(1).strip().lower()
|
current_edge_type = callout_match.group(1).strip().lower()
|
||||||
# Links in der gleichen Zeile des Callouts
|
# Links in der gleichen Zeile des Callouts
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user