From d00acbd312908b77daeed56c13bd2eca400bebe4 Mon Sep 17 00:00:00 2001 From: August-At-Play <54287845+August-At-Play@users.noreply.github.com> Date: Sun, 8 Nov 2026 14:45:02 -0800 Subject: [PATCH] fix(preview): resolve local HTML media paths and permit asset playback Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> --- README.md | 13 +++++ scripts/preview.spec.ts | 99 +++++++++++++++++++++++++++++++++++++++ scripts/preview.test.ts | 8 ++++ src-tauri/tauri.conf.json | 1 + src/lib/utils/markdown.ts | 61 ++++++++++++++++-------- 5 files changed, 163 insertions(+), 19 deletions(-) diff --git a/README.md b/README.md index 89641f0e..c5df5c44 100644 --- a/README.md +++ b/README.md @@ -88,6 +88,19 @@ The two Windows files differ only in that one installs and one does not — `-se Every syntax Markpad renders is in one document — [**download `markdown-syntax.md`**](https://raw.githubusercontent.com/sftwrdotdev/Markpad/master/samples/markdown-syntax.md) and open it in Markpad: the preview shows each feature working, the editor beside it shows how each one is written ([read it on GitHub](samples/markdown-syntax.md) first if you like). Give the same file to an AI and it knows exactly what Markpad can render: ask it to reformat a document you already have, or to write a new one that uses the whole range — callouts, tables, footnotes, maths, diagrams — and open the result here. +## Local video and audio + +Raw HTML players resolve local paths relative to the Markdown document, including `../` references and local `file:` URLs: + +```html + + +``` + +The same handling applies to `