diff --git a/_extensions/embedio/audio.lua b/_extensions/embedio/audio.lua index db9802d..aa7851a 100644 --- a/_extensions/embedio/audio.lua +++ b/_extensions/embedio/audio.lua @@ -2,7 +2,7 @@ local function audio(args, kwargs, meta) if not quarto.doc.is_format("html") then return - end + end -- Start of HTML tag local htmlTable = {"
Download audio ') + table.insert(htmlTable, '
Download audio ') end -- Add closing figure tag diff --git a/docs/assets/my-audio.mp3 b/docs/assets/my-audio.mp3 new file mode 100644 index 0000000..da2ddc2 Binary files /dev/null and b/docs/assets/my-audio.mp3 differ diff --git a/docs/qembedio-embed-audio.qmd b/docs/qembedio-embed-audio.qmd index 64728c3..f5b11db 100644 --- a/docs/qembedio-embed-audio.qmd +++ b/docs/qembedio-embed-audio.qmd @@ -5,12 +5,12 @@ title: "Embed Audio" The `audio` short code generates an embedded audio object for HTML websites. You can use it with: ```markdown -{{{< audio file="assets/test.mp3" >}}} +{{{< audio file="assets/my-audio.mp3" download="true">}}} ``` -For example, we can show the `test.mp3` with: +For example, we can embed the `my-audio.mp3` in the `assets/` with: -{{< audio file="assets/test.mp3" >}} +{{< audio file="assets/my-audio.mp3" download="true" >}} ## Options