⭐️ 新增:
- ⭐️
alert模块支持不输入标题。 - ⭐️ 提供
headingId作为配置标题方法的第六入参(通过props.markedHeadingId生成,用于解决不同编辑器的markedHeadingId和公共配置优先级问题)。
🌟 重构:
- 🌟 移除工具栏模块在仅预览时多余的判断逻辑。
- 🌟 内容中公共模块(
katex、mermaid和alert)样式移动到公共库@vavt/markdown-theme。 - 🌟 所有主题均不再隐藏复制代码按钮。
🐞 修复:
- 🐞 输入内容时提示
TypeError: textarea is undefined(#206 )。 - 🐞 方法类型的
props默认值设置错误。 - 🐞
mermaid内容在某些主题下文字下沉。
⭐️ New Feature:
- ⭐️ Support to render
alertmodule without title. - ⭐️ Provide
headingIdas the sixth parameter to configure heading.
🌟 Refactor:
- 🌟 Remove useless logic that check status 'previewOnly' in Toolbar.
- 🌟 Move style of common modules to @vavt/markdown-theme.
- 🌟 The Copy Code button is no longer hidden for all themes.
🐞 Fix:
- 🐞 Got 'TypeError: textarea is undefined' when typing text (#206 ).
- 🐞 Correct default value of type Function.
- 🐞 The text display error in module mermaid.