mirror of
https://github.com/siyuan-note/siyuan
synced 2026-04-21 13:37:52 +00:00
This commit is contained in:
parent
83236e86ed
commit
3247c43564
1 changed files with 1 additions and 1 deletions
|
|
@ -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") &&
|
||||
|
|
|
|||
Loading…
Reference in a new issue