diff --git a/markitect/document_manager.py b/markitect/document_manager.py index 1d56de9e..7e8ad445 100644 --- a/markitect/document_manager.py +++ b/markitect/document_manager.py @@ -355,6 +355,7 @@ class DocumentManager: edit_mode: bool = False, editor_theme: str = 'github', keyboard_shortcuts: bool = True) -> str: """Generate HTML template with embedded markdown and client-side rendering.""" import json + from pathlib import Path # Escape the markdown content for JavaScript js_markdown_content = json.dumps(markdown_content)