diff --git a/docs/superpowers/specs/2026-05-09-media-embed-design.md b/docs/superpowers/specs/2026-05-09-media-embed-design.md new file mode 100644 index 0000000..07d98f7 --- /dev/null +++ b/docs/superpowers/specs/2026-05-09-media-embed-design.md @@ -0,0 +1,311 @@ +# Media Embed Design + +**Date:** 2026-05-09 +**Status:** Approved +**Scope:** Add support for embedding video files, audio files, YouTube, and Vimeo in Markdown documents using the standard image syntax `![](url)`. + +## Background + +The knowledge base currently renders Markdown via `League\CommonMark` with `html_input => 'strip'`, which removes raw HTML. This is a deliberate safety choice: the project is published as OSS and may be deployed in environments with multiple authors or untrusted input, so raw HTML passthrough is undesirable. + +To migrate fixed pages from a previous WordPress site (which used `