Skip to content

Releases: imzbf/md-editor-rt

v5.2.1

13 Jan 01:09
Compare
Choose a tag to compare

修复问题

  • 🐞 使用react@19时,无法正确拖拽调整宽度(#197)(#198)。

Fixed Bugs

  • 🐞 Unable to drag and resize width when using react@19(#197)(#198).

v5.2.0

09 Jan 08:34
Compare
Choose a tag to compare

新增特性

  • 🌟 导出prefix
  • 🌟 向扩展组件动态添加showToolbarName属性。

修复问题

  • 🐞 当拖拽调整宽度时,拖拽状态可能无法释放(#197)。
  • 🐞 当组件销毁后,无法被取消的异步任务还在访问已经销毁的状态。
  • 🐞 未正确处理扩展组件的disabled属性。

New Features

  • 🌟 Export prefix.
  • 🌟 Add showToolbarName to the expansion component actively.

Fixed Bugs

  • 🐞 When dragging to adjust width, it might be impossible to release the drag state(#197).
  • 🐞 When component is destroyed, asynchronous task that couldn't be stopped accessed the state that had
    already been destroyed.
  • 🐞 Not handled extension component's disabled property.

v5.1.1

17 Dec 01:43
Compare
Choose a tag to compare

修复问题

  • 🐞 无标题且滚动时,MdCatalog组件会显示之前缓存的目录(#194)。

New Features

  • 🐞 Untitled, and when scrolling, MdCatalog component will display the last cached catalog(#194).

v5.1.0

13 Dec 05:53
Compare
Choose a tag to compare

新增特性

  • 🌟 属性disabled现在对工具栏生效了。

重构

  • ⭐️ 目录现在不受工具栏项限制。
  • ⭐️ 使用default 插槽替换部分trigger插槽。

修复问题

  • 🐞 复制代码按钮的类型定义不正确。

New Features

  • 🌟 Attribute disabled is now effective for the toolbar.

Refactor

  • ⭐️ Catalog is not restricted by the toolbar.
  • ⭐️ Replace part of trigger slot with default slot.

Fixed Bugs

  • 🐞 Icon type definition for copy code is incorrect.

v5.0.2

19 Nov 08:38
Compare
Choose a tag to compare

修复问题

  • 🐞 忽略了以两个$开头的案例。

Fixed Bugs

  • 🐞 Omitted the case starting with two $.

v5.0.1

15 Nov 06:04
Compare
Choose a tag to compare

重构

  • ⭐️ 当块级公式被文本包围时,将被视为内联公式。

Refactor

  • ⭐️ Block-level formulas will be treated as inline when surrounded by text.

v5.0.0

13 Nov 09:04
Compare
Choose a tag to compare

新增特性

  • 🌟 导出 clearSideEffects文档

重构

  • ⭐️ 使用 lucide 替换默认的图标,移除了 noIconfont 相关属性。
  • ⭐️ 使用 id 替换 editorId 属性(仅 MdEditorMdPreview ),使用 useId 获取默认值(你需要使用react@18以上)。
  • ⭐️ 导出 XSSPlugin, 不再默认添加 XSS 扩展到组件,示例
  • ⭐️ 优化 MdCatalog 组件,新增指示器。

修复问题

  • 🐞 命名错误,以前:inputBoxWitdh,现在:inputBoxWidth

New Features

  • 🌟 Export clearSideEffects, Docs.

Refactor

  • ⭐️ Replace editorId property with id(only MdEditor and MdPreview), use useId to get default value(you need to use react@18 or above).
  • ⭐️ Export XSSPlugin, no longer include XSS protection by default, Example.
  • ⭐️ Use lucide to replace default icons, remove attribute noIconfont.
  • ⭐️ Optimize component MdCatalog, add indicator.

Fixed Bugs

  • 🐞 Naming error, previously: inputBoxWitdh, now: inputBoxWidth.

v4.21.3

08 Nov 06:59
Compare
Choose a tag to compare

新增特性

  • 🌟 主动将codeTheme添加到扩展组件中。

修复问题

  • 🐞 使用React严格模式时,标题可能会出现多次。

New Features

  • 🌟 Add codeTheme to the expansion component actively.

Fixed Bugs

  • 🐞 When using React StrictMode, the title may appear duplicated.

v4.21.2

28 Oct 14:02
Compare
Choose a tag to compare

新增特性

  • 🌟 更新依赖版本,替换CDN服务源。

修复问题

  • 🐞 react/jsx-runtime没有被排除(#184)。

New Features

  • 🌟 Update dependency versions, replace CDN service sources.

Fixed Bugs

  • 🐞 react/jsx-runtime is not excluded(#184).

v4.21.1

21 Oct 02:44
Compare
Choose a tag to compare

新增特性

  • 🌟 为图片、代码和菜单添加基础的符合ADA标准的属性。

修复问题

  • 🐞 不能切换代码主题。
  • 🐞 隐藏目录后没有移除内部的监听事件。

New Features

  • 🌟 Add basic ADA-compliant attributes to images, code, and menus.

Fixed Bugs

  • 🐞 Unable to switch code themes.
  • 🐞 Listener events were not removed when hiding the catalog.