Merged
Conversation
基于 ProseMirror 实现类似 Typora 的即时渲染 Markdown 编辑器内核: 核心特性: - 即时渲染:光标在 Markdown 源码中移动,但显示为渲染后的格式 - 源码视图:所有语法标记可见,同时保持渲染样式 - 自由光标:光标可停留在任意位置,包括语法标记内部 - 完整语法支持:基础语法 + GFM + 扩展语法 主要模块: - schema: ProseMirror schema 定义,支持所有 Markdown 节点和标记 - parser: Markdown 解析器,保留语法标记作为文本内容 - serializer: 序列化为 Markdown 文本 - decorations: 装饰系统,控制语法标记的显示/隐藏 - plugins: 即时渲染、输入规则、语法检测、粘贴处理等插件 - nodeviews: 代码块(CodeMirror)、数学公式(KaTeX)、图片等自定义视图 - keymap: 快捷键支持 本次修复: - 修复列表回车创建新项的问题 - 支持嵌套语法(如 ==**text**==、***text***) - 支持列表中的代码块 - 修复图片语法识别问题 - 优化链接样式,使用主题色 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
全新的 milkup core
更多新功能,请在新版本体验!