mirror of
https://gh-proxy.org/https://github.com/klinsmaya/SQLBot.git
synced 2026-11-10 02:07:12 +08:00
20 lines
388 B
Vue
20 lines
388 B
Vue
<script setup lang="ts">
|
|
import md from '@/utils/markdown.ts'
|
|
import 'highlight.js/styles/github-dark-dimmed.css'
|
|
import { computed } from 'vue'
|
|
|
|
const props = defineProps<{
|
|
message?: string
|
|
}>()
|
|
|
|
const renderMd = computed(() => {
|
|
return md.render(props.message ?? '')
|
|
})
|
|
</script>
|
|
|
|
<template>
|
|
<div v-dompurify-html="renderMd"></div>
|
|
</template>
|
|
|
|
<style scoped lang="less"></style>
|