Improve app launch speed

This commit is contained in:
2025-09-21 03:04:23 +08:00
parent e372a0dd7c
commit 0338351680
80 changed files with 1227 additions and 17065 deletions

View File

@@ -24,6 +24,7 @@ import {moveLineDown, moveLineUp} from './moveLines';
import {getCodeBlockLanguageExtension} from './lang-parser';
import {createLanguageDetection} from './lang-detect';
import {SupportedLanguage} from './types';
import {getMathBlockExtensions} from './mathBlock';
/**
* 代码块扩展配置选项
@@ -117,6 +118,9 @@ export function createCodeBlockExtension(options: CodeBlockOptions = {}): Extens
// 复制粘贴功能
...getCopyPasteExtensions(),
// 数学块功能
...getMathBlockExtensions(),
];
}
@@ -149,7 +153,7 @@ export {
export * from './commands';
// 格式化功能
export { formatBlockContent } from './formatCode';
export {formatBlockContent} from './formatCode';
// 选择功能
export {
@@ -202,6 +206,11 @@ export {
// 行号相关
export {getBlockLineFromPos, blockLineNumbers};
// 数学块功能
export {
getMathBlockExtensions
} from './mathBlock';
/**
* 默认导出
*/