Releases: imzbf/md-editor-v3
Releases · imzbf/md-editor-v3
v4.20.2
v4.20.1
v4.20.0
新增特性
- 🌟 暴露获取
EditorView
的方法:getEditorView。 - 🌟 给
codeMirrorExtensions
提供editorId
入参。
重构
- ⭐️ 替换语法:
<sub>
替换为~~
, and<sup>
替换为^^
修复问题
- 🐞 组件在切换预览状态时可能会闪烁。
- 🐞 无法正确获取包含
katex
模块的标题内容(#658)。
文档
- 🌟 新增协同办公示例:co-working
New Features
- 🌟 Expose the method used to obtain
EditorView
: getEditorView. - 🌟 Provide
editorId
parameter forcodeMirrorExtensions
.
Refactor
- ⭐️ Replace the syntax:
<sub>
with~~
, and<sup>
with^^
Fixed Bugs
- 🐞 Component might flicker when switching preview states.
- 🐞 Failed to obtain the title containing katex module correctly(#658).
Docs
- 🌟 Add an example of collaborative working: co-working
v4.19.2
v4.19.1
v4.19.0
新增特性
- 🌟 新增
\(\)
和\[\]
作为数学公式模块标识(#462)。 - 🌟 标记工具栏的状态(#626)。
- 🌟 支持修改
katex
的配置(#622). - 🌟 输入提示不再包括一级标题。
- 🌟 更新highlight.js到11.10.0。
- 🌟 支持在web component使用编辑器(#616), Demo。
- 🌟 当提供了highlight.js实例时,不再支持切换代码的样式(#639)。
重构
- ⭐️ 插入
mermaid
内容以后,它会自动被选中。
修复问题
- 🐞 直接为组件属性赋值时的重新渲染错误(#630)。
- 🐞 可能有额外的代码行号。
- 🐞 当滚动时,标题的位置没有完全同步(#634)。
- 🐞
mermaid
内容的高度不正常(#632)。 - 🐞 Font Class类型的图标大小不正确。
- 🐞 切换预览状态后,
mermaid
内容没有正确渲染。 - 🐞 在服务端尝试访问了DOM。
- 🐞 当使用
prettier
的3.x版本时,无法格式化内容。
New Features
- 🌟 Marking math expressions with
\(\)
and\[\]
(#462). - 🌟 Marking the toolbar's status(#626).
- 🌟 Support modifying the configuration of katex(#622).
- 🌟 Auto-complete suggestions no longer include h1.
- 🌟 Upgrade highlight.js to 11.10.0
- 🌟 Support using in web component(#616), Demo.
- 🌟 When provided highlight.js instance, switching code styles is no longer supported(#639).
Refactor
- ⭐️ After inserting
mermaid
content, it will be automatically selected.
Fixed Bugs
- 🐞 Re-rendering bug when directly assigning values to components(#630).
- 🐞 There may be extra code line numbers.
- 🐞 When scrolling, positions of headers are not fully synchronized(#634).
- 🐞
mermaid
content's height is not normal(#632). - 🐞 Iconfont size is not normal.
- 🐞 After switching preview status,
mermaid
content is not displayed correctly. - 🐞 Attempted to access DOM on server side.
- 🐞 Unable to format text when using Prettier version 3.x.