diff --git a/components/Markdown.vue b/components/Markdown.vue index 171e4e81..458ab723 100644 --- a/components/Markdown.vue +++ b/components/Markdown.vue @@ -20,7 +20,8 @@ const sanitizedDescription = ref(""); const options = { headerIds: false, - mangle: false + mangle: false, + async: true }; const source = computed(() => props.source); @@ -33,12 +34,12 @@ onMounted(() => { sanitizeDescription(); }); -function convert_markdown_to_html (src: string) { - return marked(src, options); +async function convert_markdown_to_html (src: string): Promise { + return await marked(src, options); } async function sanitizeDescription () { - const html = convert_markdown_to_html(props.source); + const html = await convert_markdown_to_html(props.source); // await here sanitizedDescription.value = await sanitize(html); } diff --git a/components/Pagination.vue b/components/Pagination.vue index 9a2530e3..64847ef2 100644 --- a/components/Pagination.vue +++ b/components/Pagination.vue @@ -3,7 +3,7 @@
- diff --git a/components/authentication/AuthenticationForm.vue b/components/authentication/AuthenticationForm.vue index 4310d94c..3646c8a0 100644 --- a/components/authentication/AuthenticationForm.vue +++ b/components/authentication/AuthenticationForm.vue @@ -62,7 +62,7 @@ async function login () { navigateTo("/torrents", { replace: true }); } }) - .catch((err) => { + .catch((err: Error) => { notify({ group: "error", title: "Error", diff --git a/components/license/License.vue b/components/license/License.vue index 24162b60..29267c9c 100644 --- a/components/license/License.vue +++ b/components/license/License.vue @@ -1,6 +1,6 @@