Use a bullet instead of a dash for the task
parent
fca5d2a903
commit
3b1378717c
|
@ -178,13 +178,13 @@ export function previewTaskToggle(eventString: string) {
|
|||
}
|
||||
}
|
||||
|
||||
async function convertListItemToTask(node: ParseTree){
|
||||
async function convertListItemToTask(node: ParseTree) {
|
||||
const listMark = node.children![0];
|
||||
await editor.dispatch({
|
||||
changes: {
|
||||
from: listMark.from,
|
||||
to: listMark.to,
|
||||
insert: "- [ ]",
|
||||
insert: "* [ ]",
|
||||
},
|
||||
});
|
||||
}
|
||||
|
@ -334,8 +334,7 @@ export async function taskCycleCommand() {
|
|||
return;
|
||||
}
|
||||
console.log("Node", node);
|
||||
const taskNode =
|
||||
node.type === "Task"
|
||||
const taskNode = node.type === "Task"
|
||||
? node
|
||||
: findParentMatching(node!, (n) => n.type === "Task");
|
||||
|
||||
|
@ -344,7 +343,7 @@ export async function taskCycleCommand() {
|
|||
if (taskState) {
|
||||
await cycleTaskState(taskState);
|
||||
}
|
||||
return
|
||||
return;
|
||||
}
|
||||
|
||||
// Convert a bullet point to a task
|
||||
|
|
Loading…
Reference in New Issue