新增特性:
-
⭐️ 配置
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.cjs和md-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.