Open ntjess opened 1 month ago
The multimedia support is already gotten in shiroa. We may just consider whether it is stable enough for exposing in tinymist. The main idea is leaving an image hole in the document to be filled with external tools like typst.ts. The external tools will perform extremely strict sanity checking to avoid arbitrary HTML injection. For example, shiroa can only allow embedding video with short YouTube url or reading videos in workspace.
Rust-side:
Typst-side:
Demo:
https://myriad-dreamin.github.io/shiroa/format/supports/multimedia.html
Port of https://github.com/Enter-tainer/typst-preview/issues/242
It would be great if tinymist exposed both CLI and vscode settings for allowing video embeds