zadam / trilium

Build your personal knowledge base with Trilium Notes
GNU Affero General Public License v3.0
27.41k stars 1.93k forks source link

Linking Audio in Render Notes #4876

Open MrOctocat opened 3 weeks ago

MrOctocat commented 3 weeks ago

I think you missed the last part of the url. It should be like this:

# Image type note
api/images/NOTE_ID/ANY_STRING
# Attachment
api/attachments/NOTE_ID/image/ANY_STRING

Originally posted by @Nriver in https://github.com/zadam/trilium/discussions/4763#discussioncomment-9362151

For MP3 audio attachments, should I do the following?

<audio controls>
  <source src="api/attachments/NOTE_ID/audio/ANY_STRING" type="audio/mpeg" />
</audio>

Because it doesn't seem to be working.