Skip to content

Commit 2efc368

Browse files
committed
fix: set heading command in selection mode
1 parent b96b05b commit 2efc368

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/commands/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ export async function toggleAutoHeadingCommand(opts: {togglingBasedOnFirstBlock:
5656
await logseq.Editor.removeBlockProperty(block.uuid, PROPERTY)
5757

5858
// ensure currently edited content will be saved
59+
block.content = block.content.replace(/\n?^heading:: true$/m, '')
5960
await logseq.Editor.updateBlock(block.uuid, block.content)
6061
}
6162
}

0 commit comments

Comments
 (0)