feat: switch to svelte-markdown
This commit is contained in:
1 parent
2b642b0926
commit
98a899c596
27 files changed
+510
-139
No files matched your search
@@ -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'
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user