🐛 Fixed data migration issues

This commit is contained in:
2025-11-14 20:16:16 +08:00
parent dec3ef5ef4
commit 1d7aee4cea
7 changed files with 2503 additions and 104 deletions

View File

@@ -133,6 +133,12 @@ export {
type CreateBlockOptions,
} from './types';
// 导出解析器函数
export {
getActiveBlock,
getBlockFromPos
} from './parser';
// 状态管理
export {
blockState,

View File

@@ -6,18 +6,19 @@ import { useUpdateStore } from '@/stores/updateStore';
import SettingSection from '../components/SettingSection.vue';
import SettingItem from '../components/SettingItem.vue';
import ToggleSwitch from '../components/ToggleSwitch.vue';
import { Remarkable } from 'remarkable';
import { createMarkdownExit } from 'markdown-exit'
const { t } = useI18n();
const configStore = useConfigStore();
const updateStore = useUpdateStore();
// 初始化Remarkable实例并配置
const md = new Remarkable({
const md = createMarkdownExit({
html: true, // 允许HTML
xhtmlOut: false, // 不使用'/'闭合单标签
breaks: true, // 将'\n'转换为<br>
typographer: true // 启用排版增强
linkify: false, // 不解析链接
typographer: true, // 开启智能引号
xhtmlOut: true, // 使用xhtml语法输出
breaks: true, // 允许换行
});
// 计算属性