refine imports and styles

This commit is contained in:
AceDataCloud committed 2023-01-25 12:28:56 +08:00
1 parent f538780b91
commit c9010effbb
47 files changed
+303 -337

No files matched your search

-2
View File
@@ -1,7 +1,6 @@
<script lang="ts">
import type { PropType } from 'vue';
import { defineComponent, computed, h } from 'vue';
import MarkdownIt, { Options as MarkdownItOptions } from 'markdown-it';
export default defineComponent({
@@ -19,7 +18,6 @@ export default defineComponent({
},
setup(props, { attrs }) {
const md = new MarkdownIt(props.options);
const content = computed(() => {
const src = props.source;
return md?.render(src);