🐛 Fixed data migration issues
This commit is contained in:
@@ -133,6 +133,12 @@ export {
|
||||
type CreateBlockOptions,
|
||||
} from './types';
|
||||
|
||||
// 导出解析器函数
|
||||
export {
|
||||
getActiveBlock,
|
||||
getBlockFromPos
|
||||
} from './parser';
|
||||
|
||||
// 状态管理
|
||||
export {
|
||||
blockState,
|
||||
|
||||
@@ -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, // 允许换行
|
||||
});
|
||||
|
||||
// 计算属性
|
||||
|
||||
Reference in New Issue
Block a user