Load a .md file and return JSON graph data.
(file_path: str)
| 307 | |
| 308 | |
| 309 | def load_flow_file(file_path: str) -> Dict[str, Any]: |
| 310 | """Load a .md file and return JSON graph data.""" |
| 311 | with open(file_path, 'r', encoding='utf-8') as f: |
| 312 | content = f.read() |
| 313 | |
| 314 | handler = FlowFormatHandler() |
| 315 | return handler.markdown_to_data(content) |
| 316 | |
| 317 | |
| 318 | def save_flow_file(file_path: str, graph_data: Dict[str, Any], |