docs: 全面更新 README 与站点到 v0.2.5 最终状态
README: - badge 测试数 768→780,目录补语法高亮章节 - 特性修正:解析器 99% 行覆盖、六语言、16 个高亮语言标识 - 事件表补 selectionChange / cursorMove - 插件表补 exportPDF / searchReplace 大小写全字 / imagePaste maxSizeKB - XSS 章节补属性级注入防护说明 - 构建章节补 npm run bench - 源码结构补 5 个新模块(commands/floating-toolbar/context-menu/outline/highlight) site: - index.html: 测试数/gzip 体积更正(42KB)、新增语法高亮特性卡、 光标选区 API 速览卡、六语言文案 - demo.html: 启用内置高亮(highlight: MeEditor.highlight)、 新增 python/bash 代码块演示、v0.2.5 真实新特性列表、17 源文件/780 测试 - docs.html: 高亮章节补 16 标识与 CSS 定制示例、exportPDF/maxSizeKB/ 大小写全字说明、XSS 属性注入、静态 API 补 highlight 导入 src: - styles.ts: 新增 me-hl-* 高亮配色(深浅色自适应) - 修复复查引入的 TS 错误(普通函数 this 返回类型非法)
This commit is contained in:
+1
-1
@@ -7,7 +7,7 @@
|
||||
import { t as i18nT } from './i18n';
|
||||
import type { MarkdownEditor } from './core';
|
||||
|
||||
export function registerContextMenu(this: MarkdownEditor, items: any[] = []): this {
|
||||
export function registerContextMenu(this: MarkdownEditor, items: any[] = []): MarkdownEditor {
|
||||
this._contextMenuItems = items;
|
||||
return this;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user