markdown render

This commit is contained in:
AceDataCloud committed 2023-01-22 13:02:46 +08:00
1 parent ba4ea4f029
commit c7fdcd0a4b
4 files changed
+205 -15

No files matched your search

@@ -0,0 +1,27 @@
<template>
<vue-markdown :source="content" class="markdown-body" />
</template>
<script lang="ts">
import { defineComponent } from 'vue';
import VueMarkdown from 'vue-markdown-render';
export default defineComponent({
name: 'ApiCode',
components: {
VueMarkdown
},
props: {
content: {
type: String,
required: true
}
},
data() {},
watch: {}
});
</script>
<style lang="scss">
@import 'github-markdown-css/github-markdown.css';
</style>