+
diff --git a/components/status/StatusReplyingTo.vue b/components/status/StatusReplyingTo.vue
index 7488070e..1f38e6fe 100644
--- a/components/status/StatusReplyingTo.vue
+++ b/components/status/StatusReplyingTo.vue
@@ -5,17 +5,19 @@ const { status } = defineProps<{
status: Status
}>()
-const account = await fetchAccount(status.inReplyToAccountId!)
+const account = asyncComputed(() => fetchAccount(status.inReplyToAccountId!))
-
-
-
+
+
+
+ Someone
+ 's post
+
diff --git a/composables/content.ts b/composables/content.ts
index 9aace7ae..c5241ff1 100644
--- a/composables/content.ts
+++ b/composables/content.ts
@@ -59,11 +59,11 @@ export function contentToVNode(
return ``
return `:${name}:`
})
- // handle codeblocks
+ // handle code frames
.replace(/(```|~~~)([\s\S]+?)\1(\s|
)*<\/p>/g, (_1, _2, raw) => {
const plain = htmlToText(`
${raw}
`).trim()
const [lang, ...rest] = plain.split(/\n/)
- return ``
+ return ``
})
const tree = parseFragment(content)
diff --git a/composables/shiki.ts b/composables/shiki.ts
index 09426ed4..dfd097a6 100644
--- a/composables/shiki.ts
+++ b/composables/shiki.ts
@@ -30,6 +30,11 @@ export function highlightCode(code: string, lang: Lang) {
.then(() => {
registeredLang.value.set(lang, true)
})
+ .catch((e) => {
+ console.error(`[shiki] Failed to load language ${lang}`)
+ console.error(e)
+ registeredLang.value.set(lang, false)
+ })
return code
}