✨ Added markdown and mermaid preview

This commit is contained in:
landaiqing committed 2025-11-16 02:37:30 +08:00
1 parent 1d7aee4cea
commit 031aa49f9f
30 files changed
+5056 -469

No files matched your search

@@ -6,14 +6,14 @@ import { useUpdateStore } from '@/stores/updateStore';
import SettingSection from '../components/SettingSection.vue';
import SettingItem from '../components/SettingItem.vue';
import ToggleSwitch from '../components/ToggleSwitch.vue';
import { createMarkdownExit } from 'markdown-exit'
import markdownit from 'markdown-it'
const { t } = useI18n();
const configStore = useConfigStore();
const updateStore = useUpdateStore();
// 初始化Remarkable实例并配置
const md = createMarkdownExit({
const md = markdownit({
html: true, // 允许HTML
linkify: false, // 不解析链接
typographer: true, // 开启智能引号