Skip to content

Commit

Permalink
⬆️
Browse files Browse the repository at this point in the history
  • Loading branch information
Vanessa219 committed Jan 6, 2021
1 parent f02039e commit e9ca725
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 19 deletions.
15 changes: 6 additions & 9 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,22 +86,16 @@
* [open issues](https://github.com/Vanessa219/vditor/issues)
* [346](https://github.com/Vanessa219/vditor/issues/346) 内容主题推荐(长期有效) `改进功能`

### v3.7.5 / 2020-12-xx

### v3.7.6 / 2021-01-xx

### v3.7.5 / 2021-01-06
* [884](https://github.com/Vanessa219/vditor/issues/884) 工具栏自定义按钮禁用 `改进功能`
* [877](https://github.com/Vanessa219/vditor/issues/877) 数学公式输入删除生成节点 `修复缺陷`
* [882](https://github.com/Vanessa219/vditor/issues/882) 改进 HTML 转换 Markdown 时加粗、斜体等空格的处理 `改进功能`
* [878](https://github.com/Vanessa219/vditor/issues/878) 移除列表标记符中文优化 `改进功能`
* [875](https://github.com/Vanessa219/vditor/issues/875) 增加大纲位置配置 `引入特性`
* [873](https://github.com/Vanessa219/vditor/issues/873) graphviz,mermaid 在为空时不应出现错误提示 `改进功能`
* [872](https://github.com/Vanessa219/vditor/issues/872) vditor.options.upload.file 支持 await `改进功能`
* 文档修改
* 3.7.5
* `options.outline` 修改为 `{ enable: boolean, position: "left" | "right" }`
* `toolbar.click` 参数修改为 `event: Event, vditor: IVditor`

### v3.7.4 / 2020-12-26

* [871](https://github.com/Vanessa219/vditor/issues/871) 大纲标题过长需显示省略号 `改进功能`
* [866](https://github.com/Vanessa219/vditor/issues/866) 预览配置开启自动空格后,链接中有中文,无法正常解析 `改进功能`
* [868](https://github.com/Vanessa219/vditor/issues/868) 将 Markdown 引擎选项拆分为解析选项和渲染选项 `改进功能`
Expand Down Expand Up @@ -135,6 +129,9 @@
* 添加 `options.fullscreen.index`
* 3.7.4
* 移除`options.preview.markdown.chinesePunct` 配置
* 3.7.5
* `options.outline` 修改为 `{ enable: boolean, position: "left" | "right" }`
* `toolbar.click` 参数修改为 `event: Event, vditor: IVditor`

### v3.6.6 / 2020-11-23

Expand Down
2 changes: 1 addition & 1 deletion demo/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ window.vditor = new Vditor('vditor', {
height: window.innerHeight + 100,
outline: {
enable: true,
position: "right"
position: 'right',
},
debugger: true,
typewriterMode: true,
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vditor",
"version": "3.7.4",
"version": "3.7.5",
"description": "♏ 易于使用的 Markdown 编辑器,为适配不同的应用场景而生",
"author": "Vanessa <v@b3log.org> (http://vanessa.b3log.org)",
"homepage": "https://b3log.org/vditor",
Expand Down
10 changes: 5 additions & 5 deletions src/js/lute/lute.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/ts/sv/inputEvent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export const inputEvent = (vditor: IVditor, event?: InputEvent) => {
const mathBlockMarkerElement =
hasClosestByAttribute(startContainer, "data-type", "math-block-open-marker");
if (mathBlockMarkerElement) {
const mathBlockCloseElement = mathBlockMarkerElement.nextElementSibling.nextElementSibling
const mathBlockCloseElement = mathBlockMarkerElement.nextElementSibling.nextElementSibling;
if (mathBlockCloseElement && mathBlockCloseElement.getAttribute("data-type") === "math-block-close-marker") {
mathBlockCloseElement.remove();
processAfterRender(vditor);
Expand Down
2 changes: 1 addition & 1 deletion src/ts/toolbar/Custom.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {Constants} from "../constants";
import {getEventName} from "../util/compatibility";
import {MenuItem} from "./MenuItem";
import {Constants} from "../constants";

export class Custom extends MenuItem {
constructor(vditor: IVditor, menuItem: IMenuItem) {
Expand Down

0 comments on commit e9ca725

Please sign in to comment.