Merge pull request #463 from haron-IV/fix/cancel-date-goes-before-task-content

fix: cancel date goes before task content
This commit is contained in:
Boninall 2025-09-27 09:23:08 +08:00 committed by GitHub
commit e18ea53b35
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -670,7 +670,6 @@ function findMetadataInsertPosition(
): number {
// Work with the full line text, don't extract block reference yet
const blockRef = detectBlockReference(lineText);
// Find the task marker and status
const taskMatch = lineText.match(/^[\s|\t]*([-*+]|\d+\.)\s\[(.)\]\s*/);
if (!taskMatch) return blockRef ? blockRef.index : lineText.length;