refine imports and styles
This commit is contained in:
1 parent
f538780b91
commit
c9010effbb
47 files changed
+303
-337
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user