You've already forked obsidian-visualiser
Markdown editor in progress + Login and session process completed
This commit is contained in:
5
components/prose/live/LiveA.vue
Normal file
5
components/prose/live/LiveA.vue
Normal file
@@ -0,0 +1,5 @@
|
||||
<template>
|
||||
<a>
|
||||
<slot></slot>
|
||||
</a>
|
||||
</template>
|
||||
12
components/prose/live/LiveBlockquote.vue
Normal file
12
components/prose/live/LiveBlockquote.vue
Normal file
@@ -0,0 +1,12 @@
|
||||
<template>
|
||||
<span v-if="focused">> </span>
|
||||
<blockquote ref="el" @focusin="focused = true" @focusout="focused = false">
|
||||
<slot />
|
||||
</blockquote>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
const focused = ref(false);
|
||||
|
||||
watch(focused, console.log);
|
||||
</script>
|
||||
3
components/prose/live/LiveH1.vue
Normal file
3
components/prose/live/LiveH1.vue
Normal file
@@ -0,0 +1,3 @@
|
||||
<template>
|
||||
<span v-show="false"># </span><h1><slot></slot></h1>
|
||||
</template>
|
||||
12
components/prose/live/LiveH2.vue
Normal file
12
components/prose/live/LiveH2.vue
Normal file
@@ -0,0 +1,12 @@
|
||||
<template>
|
||||
<span v-show="focused">## </span><h2><slot></slot></h2>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
const props = defineProps({
|
||||
focused: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
}
|
||||
})
|
||||
</script>
|
||||
3
components/prose/live/LiveH3.vue
Normal file
3
components/prose/live/LiveH3.vue
Normal file
@@ -0,0 +1,3 @@
|
||||
<template>
|
||||
<span v-show="false">### </span><h3><slot></slot></h3>
|
||||
</template>
|
||||
3
components/prose/live/LiveH4.vue
Normal file
3
components/prose/live/LiveH4.vue
Normal file
@@ -0,0 +1,3 @@
|
||||
<template>
|
||||
<span v-show="false">#### </span><h4><slot></slot></h4>
|
||||
</template>
|
||||
3
components/prose/live/LiveH5.vue
Normal file
3
components/prose/live/LiveH5.vue
Normal file
@@ -0,0 +1,3 @@
|
||||
<template>
|
||||
<span v-show="false">##### </span><h5><slot></slot></h5>
|
||||
</template>
|
||||
3
components/prose/live/LiveH6.vue
Normal file
3
components/prose/live/LiveH6.vue
Normal file
@@ -0,0 +1,3 @@
|
||||
<template>
|
||||
<span v-show="false">###### </span><h6><slot></slot></h6>
|
||||
</template>
|
||||
Reference in New Issue
Block a user