You've already forked obsidian-visualiser
Updated legal stuff, added floating popup that can be pin and move. Fix character compiler modifier updates not dirtying all dependents.
This commit is contained in:
@@ -1,22 +0,0 @@
|
||||
<template>
|
||||
<span ref="container"></span>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { parseURL } from 'ufo';
|
||||
import proses, { preview } from '#shared/proses';
|
||||
import { text } from '#shared/dom.util';
|
||||
|
||||
const { href, label } = defineProps<{
|
||||
href: string,
|
||||
label: string
|
||||
}>();
|
||||
|
||||
const container = useTemplateRef('container');
|
||||
|
||||
onMounted(() => {
|
||||
queueMicrotask(() => {
|
||||
container.value && container.value.appendChild(proses('a', preview, [ text(label) ], { href }) as HTMLElement);
|
||||
});
|
||||
});
|
||||
</script>
|
||||
Reference in New Issue
Block a user