Skip to content

AI turns documents or topics into real, native PowerPoint decks—with native shapes, transitions and animations, data-backed charts and tables on demand, audio narration from speaker notes, and support for your own .pptx templates. · by Hugo He

fix(visual-review): encodeURIComponent page_name in the browser fetch path

hugohe3d384babf5068
diff --git a/skills/ppt-master/scripts/visual_review.py b/skills/ppt-master/scripts/visual_review.py
index 66eee286..668de740 100644
--- a/skills/ppt-master/scripts/visual_review.py
+++ b/skills/ppt-master/scripts/visual_review.py
@@ -139,7 +139,7 @@ def render_pages(server_url: str, pages: list[str], preview_dir: Path) -> list[d
inject_js = """
async (pageName) => {
- const res = await fetch('/api/slide/' + pageName + '?_=' + Date.now());
+ const res = await fetch('/api/slide/' + encodeURIComponent(pageName) + '?_=' + Date.now());
if (!res.ok) throw new Error('fetch /api/slide/' + pageName + ' returned ' + res.status);
const data = await res.json();
document.documentElement.innerHTML =