You've already forked obsidian-visualiser
Fix tags, some parts of the markdown hydration, change how icon works
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
const route = useRoute();
|
||||
const project = computed(() => parseInt(route.params.projectId as string));
|
||||
|
||||
const { data: navigation, refresh } = await useLazyFetch(() => `/api/project/${project.value}/navigation`, { immediate: false });
|
||||
const { data: navigation, refresh } = await useFetch(() => `/api/project/${project.value}/navigation`, { immediate: false });
|
||||
if(!isNaN(project.value))
|
||||
{
|
||||
await refresh();
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
<template v-else-if="!!file">
|
||||
<div v-if="file.type === 'Markdown'" class="p-6 ms-6">
|
||||
<ProseH1>{{ file.title }}</ProseH1>
|
||||
<Markdown v-model="file.content"></Markdown>
|
||||
<Markdown :content="file.content"></Markdown>
|
||||
</div>
|
||||
<div v-else-if="file.type === 'Canvas'" class="w-[550px] h-[450px] overflow-hidden">
|
||||
<CanvasRenderer :canvas="JSON.parse(file.content) " />
|
||||
|
||||
Reference in New Issue
Block a user