新增特性:
- ⭐️ 在代码模块中显示代码的语言名称(#212)。
- ⭐️ 使用图标替换复制代码按钮中的文字(#212). 新的图标库链接 iconfont.js。
- ⭐️ 支持新的katex模块语法(例如:
$$\tag{hi} x+y^{2x}$$)。 - ⭐️ 新的监听事件:
onBlur,onFocus(#214)。 - ⭐️ 当
previewOnly设置为true时,也加载图标库。 - ⭐️ 支持使用mermaid@10(#219)。然而,当前的默认版本是9.4.0,因为mermaid的一些bug尚未修复。
- ⭐️ 切换预览模块显示状态后,自动对齐两边的滚动条。
重构:
- 🌟 移除工具栏的样式
min-width(#214)。 - 🌟 修正css变量(
--md-scrollbar-thumb-active-color)中不正确的拼写名称。
修复Bug:
- 🐞 自定义一些marked内部的扩展未正确生效。
- 🐞 复制按钮在切换预览模块状态后没有正确显示。
- 🐞 使用SSR时,提供mermaid实例时报错。
New Features:
- ⭐️ Display the name of development language(#212).
- ⭐️ Replace text with icon in element
.copy-button(#212). New iconfont.js. - ⭐️ Write a katex block with one new grammar(
$$\tag{hi} x+y^{2x}$$works). - ⭐️ New events:
onBlur,onFocus(#214). - ⭐️ Load
iconfont.jswhen setpreviewOnly = true. - ⭐️ Support to use mermaid@10 (#219). However, the current default version is 9.4.0, for some bugs of
mermaidare not fixed yet. - ⭐️ Synchronize scroll height after switching preview status.
Refactor:
- 🌟 Remove style min-width of toolbar(#214).
- 🌟 Modify the wrong spelling of css variable(
--md-scrollbar-thumb-active-color) name.
Fix Bugs:
- 🐞 Some modules of marked can't be customized.
- 🐞 The button for copying code is not initialized after switching peview status.
- 🐞 Render mermaid error when using SSR.