feat: re-add comment url photonifying

This commit is contained in:
Xylight committed 2023-11-27 17:07:30 -08:00
1 parent 0e29987d7f
commit 7181b44036
2 files changed
+8 -4

No files matched your search

+7 -3
View File
@@ -1,4 +1,5 @@
<script lang="ts">
import { PUBLIC_SSR_ENABLED } from '$env/static/public'
import { md, mdInline, photonify } from '$lib/components/markdown/markdown'
import { onMount } from 'svelte'
@@ -36,9 +37,12 @@
From server to client, the rendered html won't change for some reason
I have no clue why this fixes it, but it does.
*/
onMount(() => {
rendered = `${rendered} `
})
if (PUBLIC_SSR_ENABLED.toLowerCase() == 'true') {
onMount(() => {
rendered = `${rendered} `
replaceURLs(div, rendered)
})
}
</script>
<div