style: 调整代码格式
- 根据ESLint文件规范格式化app文件夹中的代码
This commit is contained in:
@ -6,19 +6,18 @@
|
||||
|
||||
<script setup lang="ts">
|
||||
interface Props {
|
||||
content: string
|
||||
content: string;
|
||||
}
|
||||
|
||||
const props = defineProps<Props>()
|
||||
const props = defineProps<Props>();
|
||||
|
||||
const contentWithAbsoluteUrls = convertMedia(props.content)
|
||||
const contentWithAbsoluteUrls = convertMedia(props.content);
|
||||
|
||||
// 将 Markdown 转换成 HTML
|
||||
const safeHtml = computed(() => renderMarkdown(contentWithAbsoluteUrls))
|
||||
const safeHtml = computed(() => renderMarkdown(contentWithAbsoluteUrls));
|
||||
// const safeHtml = computed(() => renderMarkdown(props.content))
|
||||
|
||||
console.log('Rendered HTML:', safeHtml.value)
|
||||
|
||||
console.log("Rendered HTML:", safeHtml.value);
|
||||
</script>
|
||||
|
||||
<style>
|
||||
@ -70,4 +69,4 @@ console.log('Rendered HTML:', safeHtml.value)
|
||||
border-top: 1px solid var(--el-border-color);
|
||||
margin: 20px 0;
|
||||
}
|
||||
</style>
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user