Expand description
Audio embed synthesizer.
Receives a TitleParams (Stage 2 dispatcher already parsed it), the
source URL, and an AssetSnapshot. Emits final <audio> HTML —
preserving the shape moss-core’s AudioRenderer used to emit before
Phase 0’s Stage 1 migration.
Pre-Phase-0 reference shape (from crates/moss-core/src/resolve/embed_renderer.rs
at commit 8f9b6b55a):
<audio class="moss-embed moss-embed-audio" controls preload="metadata">
<source src="{url}" type="{mime}">
Your browser does not support the audio tag.
</audio>The AudioRenderer always emitted controls and preload="metadata",
with a <source type="{mime}"> derived from the asset extension. Phase 1
preserves that exact byte shape; TitleParams (controls, loop,
autoplay, muted, preload) currently surface no behavioral overrides
because the markdown emitter does not author them — they are reserved for
future param plumbing without changing the dispatcher contract.
Functions§
- synthesize_
audio_ html - Synthesize audio embed HTML for
Tag::Linkwithmoss:kind=audiotitle.