refactor(notes): use options object for renderCodeFile params

This commit is contained in:
Julien Calixte
2026-04-27 19:58:24 +02:00
parent 9d6f70546e
commit cf5567de7c
3 changed files with 10 additions and 7 deletions

View File

@@ -70,7 +70,7 @@ watch(
}
const lang = p ? getFileLanguage(p) : null
const filename = p?.split("/").pop()
const result = await renderCodeFile(raw, lang, filename)
const result = await renderCodeFile({ rawContent: raw, lang, filename })
if (rawContent.value === raw) {
displayedContent.value = result
}