npm md-editor-v3 2.11.0
v2.11.0

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

新增特性:

  • ⭐️ 配置highlight.js实例后,同样支持切换代码样式。如果你在不存在编辑器的页面需要设置独立的highlight.js代码样式,建议给页面添加如下内容,编辑器会自动识别到并且切换样式:

    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.5.1/styles/atom-one-dark.min.css" id="md-editor-hlCss">
  • ⭐️ 同时构建md-editor-v3.mjs, md-editor-v3.cjsmd-editor-v3.umd.js三个版本。

重构:

  • 🌟 部分类型判断语句。

New Features:

  • ⭐️ Support to change theme of code block when provide highlight.js instance. If you need to set a separate 'highlight. js' code style on a page where no editor exists, it is recommended to add the following content to the page, The editor automatically recognizes and switches it:

    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.5.1/styles/atom-one-dark.min.css" id="md-editor-hlCss">
  • ⭐️ Rename output bundle and add cjs formats. All bundles: md-editor-v3.mjs, md-editor-v3.cjs, md-editor-v3.umd.js.

Refactor:

  • 🌟 Judgment syntax for partial types.

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

NewReleases is sending notifications on new releases.