mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-06-27 22:36:00 +00:00
This commit is contained in:
@@ -3,7 +3,7 @@ import {focusByWbr} from "../util/selection";
|
||||
import * as dayjs from "dayjs";
|
||||
|
||||
export const turnIntoTaskList = (protyle: IProtyle, type: string, blockElement: HTMLElement, editElement: HTMLElement, range: Range) => {
|
||||
const dataTask = editElement.innerHTML.substring(0, 3).match(/^[\[【]([^\[\]【】])[\]】]$/);
|
||||
const dataTask = editElement.innerHTML.substring(0, 3).match(/^[\[【]([^\x80-\uffff\[\]【】\"])[\]】]$/);
|
||||
if (type !== "NodeCodeBlock" &&
|
||||
// 任务列表首块不需要再更新为任务列表
|
||||
!blockElement.previousElementSibling?.classList.contains("protyle-action--task") &&
|
||||
|
||||
Reference in New Issue
Block a user