Closed candideu closed 8 months ago
I ran into some issues when trying to embed audio and video files:
Currently, the script generates the links like this:
- [:video {:controls true :src "C:\Users\user\Downloads\video.mp4"}]
- [:audio {:controls true :src "C:\Users\user\Music\Mix.mp3"}]
However, it should generate them like this:
file:
- [:video {:controls true :src "file:C:/Users/user/Downloads/video.mp4"}]
- [:audio {:controls true :src "file:C:/Users/user/Music/Mix.mp3"}]
OR
!
- ![](file:///C:/Users/user/Downloads/video.mp4)
- ![](file:///C:\Users\user\Music\Mix.mp3)
- @@html: <video controls> <source src="file:C:/Users/user/Downloads/video.mp4"> </video>@@
- @@html: <audio controls src="file:C:/Users/user/Music/Mix.mp3"></audio> @@
Solves: https://github.com/hkgnp/logseq-localassets-plugin/issues/9
Fixed in v2.0.0.
I ran into some issues when trying to embed audio and video files:
Currently, the script generates the links like this:
However, it should generate them like this:
Method 1: Forward Slashes and
file:
OR
Method 2:
!
LinksOR
Method 3: HTML Embed