Skip to content

Commit 896a542

Browse files
silverwindclaude
andcommitted
Adjust docstring style
Co-Authored-By: Claude (Opus 4.6) <noreply@anthropic.com>
1 parent 12859bd commit 896a542

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

web_src/js/markup/tasklist.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,10 @@ import {showErrorToast} from '../modules/toast.ts';
33

44
const preventListener = (e: Event) => e.preventDefault();
55

6-
/** Toggle a task list checkbox in markdown content at the given byte position.
7-
* Returns the updated content, or null if the position is invalid. */
6+
/**
7+
* Toggle a task list checkbox in markdown content at the given byte position.
8+
* Returns the updated content, or null if the position is invalid.
9+
*/
810
export function toggleTasklistCheckbox(content: string, position: number, checked: boolean): string | null {
911
const buffer = new TextEncoder().encode(content);
1012
// Indexes may fall off the ends and return undefined.

0 commit comments

Comments
 (0)