From c0a84b439b173f83dcd39ba4b21e89f7de1a981f Mon Sep 17 00:00:00 2001 From: Heiko Joerg Schick Date: Sat, 21 Mar 2026 15:32:34 +0100 Subject: [PATCH] Always prefix lines in bullet conversion commands Both bulletToArrow and bulletToEmdash now prepend the symbol to every selected line, not just lines starting with "* ". Lines with "* " still have the marker stripped before the prefix is added. Co-Authored-By: Claude Sonnet 4.6 --- src/formatter.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/formatter.ts b/src/formatter.ts index d6015b1..5c3d23a 100644 --- a/src/formatter.ts +++ b/src/formatter.ts @@ -19,12 +19,12 @@ export function cleanText(text: string): string { export function bulletToEmdash(text: string): string { return text.split("\n").map(line => - line.startsWith("* ") ? "— " + line.slice(2) : line + line.startsWith("* ") ? "— " + line.slice(2) : "— " + line ).join("\n"); } export function bulletToArrow(text: string): string { return text.split("\n").map(line => - line.startsWith("* ") ? "→ " + line.slice(2) : line + line.startsWith("* ") ? "→ " + line.slice(2) : "→ " + line ).join("\n"); }