feat: switch to svelte-markdown

This commit is contained in:
Xylight committed 2024-08-02 12:18:43 -07:00
1 parent 2b642b0926
commit 98a899c596
27 files changed
+510 -139

No files matched your search

+3 -3
View File
@@ -79,9 +79,9 @@ export const mediaType = (url?: string, view: View = 'cozy'): MediaType => {
return 'none'
}
export const iframeType = (post: Post): IframeType => {
if (isVideo(post.url)) return 'video'
if (isYoutubeLink(post.url)) return 'youtube'
export const iframeType = (url: string): IframeType => {
if (isVideo(url)) return 'video'
if (isYoutubeLink(url)) return 'youtube'
return 'none'
}