npm md-editor-v3 2.2.0
v2.2.0

latest releases: 6.3.1, 6.3.0, 6.2.1...
3 years ago

新增特性

  • noIconfont属性,这将不会请求矢量图标库资源,相反,你需要自行下载图标到项目中引入。
  • 配置prettier,参考配置编辑器EditorExtensions,完全配置参考自行引入扩展库
  • onClick MdCatalog 组件属性,点击每个导航时的事件,使用参考文档源码
  • 如果未使用MdEditor.config配置延迟渲染时间, 仅预览模式下将默认为0,即不延迟。
  • 继承marked.Renderer,重写markedRenderer入参render.heading,提供文章标题下标为第5入参(#123 )。

调整

  • 部分功能重构。

修复

  • 修复图片及链接hover title为空的情况(#121 )。
  • 修复隐藏后展示编辑器,同步滚动失效问题(#121 )。
  • 修复部分语言代码模块highlight报错问题(#123)。
  • 修复vuepress模式下,行内代码样式不统一问题(#121 )。

New Feature

  • noIconfont prop. Not append iconfont script to document. Download and import it by yourself.
  • config prettier. Reference EditorExtensions in Config Editor . All library example, reference Import All Library.
  • onClick MdCatalog prop. Navigation clicked event, reference source code.
  • If don't use MdEditor.config to config renderDelay, renderDelay will be set to 0 while previewOnly = true.
  • Extends marked.Renderer, Rewrite render.heading, provide heading index as the fifth parameter(#123 ).

Refactor

  • Refactor some codes.

Fix

  • Set incorrect default title of images(#121 ).
  • Not initialize scrolling on mounted(#121 ).
  • Highlight not support some special code languages(#123).
  • Inline code style is not same as others when previewTheme = 'vuepress'(#121 ).

Don't miss a new md-editor-v3 release

NewReleases is sending notifications on new releases.